changeset 39359:8d23ea77b66e

(Fcall_process): Handle errors from pipe(2). (child_setup): Delete code in #ifdef vipc.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 20 Sep 2001 10:06:12 +0000
parents d599e4f7047f
children baed97f2160b
files src/callproc.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);