diff options
author | Josselin Poiret <dev@jpoiret.xyz> | 2023-05-05 15:39:23 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2023-05-08 16:06:28 +0200 |
commit | 36fd2b4920ae926c79b936c29e739e71a6dff2bc (patch) | |
tree | cde55553728dc26e06a004faf1d820ae101f51af /libguile/gh_io.c | |
parent | ccd7400fdbebca73fc4340ad4ca0248655009f04 (diff) | |
download | guile-main.tar.gz |
In Guile 3.0.9, 'system*' would no longer open /dev/null for file
descriptors 0, 1, and 2 when its 'current-input-port',
'current-output-port', or 'current-output-port' is not bound to a file
port. This patch reinstates that behavior.
Fixes <https://bugs.gnu.org/63024>.
* libguile/posix.c (piped_process): Open /dev/null to use as in/out/err
if the corresponding port is not backed by a file descriptor.
* test-suite/tests/posix.test ("system*")["https://bugs.gnu.org/63024"]:
New test.
* NEWS: Update.
Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'libguile/gh_io.c')
0 files changed, 0 insertions, 0 deletions