From db92b288420f8528cdb62a3d78052c1deb4504a8 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 20 Sep 2001 10:06:35 +0000 Subject: [PATCH] (Fcall_process): Handle errors from pipe(2). (child_setup): Delete code in #ifdef vipc. --- src/ChangeLog | 5 +++++ src/callproc.c | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index ef2f0947d21..b2d5c1dd7a3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-09-20 Gerd Moellmann + + * callproc.c (Fcall_process): Handle errors from pipe(2). + (child_setup): Delete code in #ifdef vipc. + 2001-09-19 Gerd Moellmann * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE. diff --git a/src/callproc.c b/src/callproc.c index 9101f264cce..70a42dddb05 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); -- 2.39.2