diff options
author | Christopher Baines <mail@cbaines.net> | 2022-06-25 18:14:07 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-07-08 13:51:34 +0100 |
commit | b4c4a6acb1204ee53e95744236ee89985db32f91 (patch) | |
tree | 55ac03203aea7ccc904e9dd706c7ff22fb19e63c /tests/test.drv | |
parent | 37dd7e53b9bf635b62b36cd6b028497048481288 (diff) | |
download | guix-b4c4a6acb1204ee53e95744236ee89985db32f91.tar.gz guix-b4c4a6acb1204ee53e95744236ee89985db32f91.zip |
guix: inferior: Fix the behaviour of open-inferior #:error-port.
I'm looking at this as the Guix Data Service uses this behaviour to record and
display logs from inferior processes.
* guix/inferior.scm (open-bidirectional-pipe): Call dup2 for file descriptor
2, passing either the file number for the current error port, or a file
descriptor for /dev/null.
* tests/inferior.scm ("#:error-port stderr", "#:error-port pipe"): Add two new
tests that cover some of the #:error-port behaviour.
Diffstat (limited to 'tests/test.drv')
0 files changed, 0 insertions, 0 deletions