diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-18 18:29:13 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2006-10-18 18:29:13 +0000 |
commit | 2fc96d4928baccbdf7d52eca57b967f4c5355d8e (patch) | |
tree | ee9076375b75ec179576a3a39c4b0bda56771048 /lib/libsystem.c | |
parent | b31e75a79a6f096f3462292fd48494035f0be0fe (diff) | |
download | netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.tar.gz netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.tar.xz netpbm-mirror-2fc96d4928baccbdf7d52eca57b967f4c5355d8e.zip |
Release 10.35.08
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@90 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib/libsystem.c')
-rw-r--r-- | lib/libsystem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libsystem.c b/lib/libsystem.c index e0d62178..560f0a9c 100644 --- a/lib/libsystem.c +++ b/lib/libsystem.c @@ -242,6 +242,10 @@ pm_system(void stdinFeeder(int, void *), spawnProcessor(shellCommand, shellStdinFd, &shellStdoutFd, &processorPid); + /* The shell process has cloned our 'shellStdinFd'; we have no + more use for our copy. + */ + close(shellStdinFd); /* Dispose of the stdout from that shell */ (*stdoutAccepter)(shellStdoutFd, accepterParm); close(shellStdoutFd); |