mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 00:51:50 -08:00
(Fcall_process): Don't close the same fd twice.
This commit is contained in:
parent
9aa94bd50c
commit
799abb26c3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue