From: Gerd Moellmann Date: Thu, 20 Sep 2001 10:06:35 +0000 (+0000) Subject: (Fcall_process): Handle errors from pipe(2). X-Git-Tag: emacs-pretest-21.0.106~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=db92b288420f8528cdb62a3d78052c1deb4504a8;p=emacs.git (Fcall_process): Handle errors from pipe(2). (child_setup): Delete code in #ifdef vipc. --- 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);