diff options
| author | Karl Heuer | 1996-05-15 14:32:37 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-05-15 14:32:37 +0000 |
| commit | 799abb26c3caaf7eb71c01c3bf11893ccdcc1abd (patch) | |
| tree | 661b4a1cfab1ee13f46d7a41079f9cfdff95e7ef /src | |
| parent | 9aa94bd50ca204c3549ee75c31bc970c1bf4b45d (diff) | |
| download | emacs-799abb26c3caaf7eb71c01c3bf11893ccdcc1abd.tar.gz emacs-799abb26c3caaf7eb71c01c3bf11893ccdcc1abd.zip | |
(Fcall_process): Don't close the same fd twice.
Diffstat (limited to 'src')
| -rw-r--r-- | src/callproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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.") | |||
| 458 | /* Close most of our fd's, but not fd[0] | 458 | /* Close most of our fd's, but not fd[0] |
| 459 | since we will use that to read input from. */ | 459 | since we will use that to read input from. */ |
| 460 | close (filefd); | 460 | close (filefd); |
| 461 | if (fd1 >= 0) | 461 | if (fd1 >= 0 && fd1 != fd_error) |
| 462 | close (fd1); | 462 | close (fd1); |
| 463 | } | 463 | } |
| 464 | 464 | ||