aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann <[email protected]>2001-09-20 10:06:35 +0000
committerGerd Moellmann <[email protected]>2001-09-20 10:06:35 +0000
commitdb92b288420f8528cdb62a3d78052c1deb4504a8 (patch)
tree71556160e599b37a080bed15a584e8a4c4390891
parent005e3bb6654fc8a1e0d477158741f6762b7da7fb (diff)
(Fcall_process): Handle errors from pipe(2).
(child_setup): Delete code in #ifdef vipc.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/callproc.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ef2f0947d2..b2d5c1dd7a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2001-09-20 Gerd Moellmann <[email protected]>
+
+ * callproc.c (Fcall_process): Handle errors from pipe(2).
+ (child_setup): Delete code in #ifdef vipc.
+
2001-09-19 Gerd Moellmann <[email protected]>
* xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
diff --git a/src/callproc.c b/src/callproc.c
index 9101f264cc..70a42dddb0 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -465,7 +465,12 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
{
#ifndef MSDOS
#ifndef macintosh
- pipe (fd);
+ errno = 0;
+ if (pipe (fd) == -1)
+ {
+ emacs_close (filefd);
+ report_file_error ("Creating process pipe", Qnil);
+ }
#endif
#endif
#if 0
@@ -1307,10 +1312,6 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
/* setpgrp_of_tty is incorrect here; it uses input_fd. */
EMACS_SET_TTY_PGRP (0, &pid);
-#ifdef vipc
- something missing here;
-#endif /* vipc */
-
#ifdef MSDOS
pid = run_msdos_command (new_argv, pwd_var + 4, in, out, err, env);
xfree (pwd_var);