# HG changeset patch # User Gerd Moellmann # Date 1000980372 0 # Node ID 8d23ea77b66e071ab2d6b8e0595379bd12d7c71d # Parent d599e4f7047fa62863d8802003012398e9ee775e (Fcall_process): Handle errors from pipe(2). (child_setup): Delete code in #ifdef vipc. diff -r d599e4f7047f -r 8d23ea77b66e src/callproc.c --- a/src/callproc.c Wed Sep 19 20:59:24 2001 +0000 +++ b/src/callproc.c Thu Sep 20 10:06:12 2001 +0000 @@ -465,7 +465,12 @@ { #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 @@ /* 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);