inferior: Allow controlling the inferior error port.
authorChristopher Baines <mail@cbaines.net>
Wed, 2 Oct 2019 18:12:38 +0000 (19:12 +0100)
committerChristopher Baines <mail@cbaines.net>
Tue, 15 Oct 2019 18:01:47 +0000 (19:01 +0100)
commitf0428c18f85692f11ddd28fc12e949c420e971c9
tree71d3afa04cc114cb840e7ffc534513505ddfd3a0
parent1007640a63de6749a93e94a2751f66af56b01d07
inferior: Allow controlling the inferior error port.

Previously, stderr for the inferior process would always be sent to /dev/null
because the current-output-port when the process is launched is a void
port. This change means that it's possible to pass in a different port to use.

* guix/inferior.scm (inferior-pipe): Take the error-port as an argument.
(open-inferior): Add new error-port keyword argument, with a default
of (%make-void-port "w").
guix/inferior.scm