~ruther/guix-local

5674a3fdb6b4b0f744e2339167d415d8a7a265a0 — Ludovic Courtès 12 years ago 59f734f
store: Add comments for the %stderr constants.

* guix/store.scm (process-stderr): Add comments for the various
  constants, to help when stracing.
1 files changed, 5 insertions(+), 5 deletions(-)

M guix/store.scm
M guix/store.scm => guix/store.scm +5 -5
@@ 360,11 360,11 @@ encoding conversion errors."
    (nix-server-socket server))

  ;; magic cookies from worker-protocol.hh
  (define %stderr-next  #x6f6c6d67)
  (define %stderr-read  #x64617461)               ; data needed from source
  (define %stderr-write #x64617416)               ; data for sink
  (define %stderr-last  #x616c7473)
  (define %stderr-error #x63787470)
  (define %stderr-next  #x6f6c6d67)          ; "olmg", build log
  (define %stderr-read  #x64617461)          ; "data", data needed from source
  (define %stderr-write #x64617416)          ; "dat\x16", data for sink
  (define %stderr-last  #x616c7473)          ; "alts", we're done
  (define %stderr-error #x63787470)          ; "cxtp", error reporting

  (let ((k (read-int p)))
    (cond ((= k %stderr-write)