mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(Fcall_process): Don't close the same fd twice.
This commit is contained in:
parent
9aa94bd50c
commit
799abb26c3
@ -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…
Reference in New Issue
Block a user