projects
/
chise
/
xemacs-chise.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(CB06935): New character; add `<-unknown' for U-00020971.
[chise/xemacs-chise.git]
/
src
/
callproc.c
diff --git
a/src/callproc.c
b/src/callproc.c
index
5c90e9e
..
8272ca9
100644
(file)
--- a/
src/callproc.c
+++ b/
src/callproc.c
@@
-399,9
+399,6
@@
If you quit, the process is killed with SIGINT, or SIGKILL if you
}
#endif
}
}
#endif
}
- /* Close STDERR into the parent process. We no longer need it. */
- if (fd_error >= 0)
- close (fd_error);
#else /* not WIN32_NATIVE */
pid = fork ();
#else /* not WIN32_NATIVE */
pid = fork ();
@@
-420,17
+417,18
@@
If you quit, the process is killed with SIGINT, or SIGKILL if you
child_setup (filefd, fd1, fd_error, new_argv,
(char *) XSTRING_DATA (current_dir));
}
child_setup (filefd, fd1, fd_error, new_argv,
(char *) XSTRING_DATA (current_dir));
}
- if (fd_error >= 0)
- close (fd_error);
-
#endif /* not WIN32_NATIVE */
environ = save_environ;
#endif /* not WIN32_NATIVE */
environ = save_environ;
+ /* Close STDERR into the parent process. We no longer need it. */
+ if (fd_error >= 0)
+ close (fd_error);
+
/* Close most of our fd's, but not fd[0]
since we will use that to read input from. */
close (filefd);
/* 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);
}
close (fd1);
}