From: Karl Heuer Date: Wed, 15 May 1996 14:32:37 +0000 (+0000) Subject: (Fcall_process): Don't close the same fd twice. X-Git-Tag: emacs-19.34~626 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=799abb26c3caaf7eb71c01c3bf11893ccdcc1abd;p=emacs.git (Fcall_process): Don't close the same fd twice. --- diff --git a/src/callproc.c b/src/callproc.c index 265d8287723..4d84c98edb7 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -458,7 +458,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.") /* Close most of our fd's, but not fd[0] since we will use that to read input from. */ close (filefd); - if (fd1 >= 0) + if (fd1 >= 0 && fd1 != fd_error) close (fd1); }