changeset 87732:d3276439c0d3

(Fcall_process): Fix previous change.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 13 Jan 2008 15:15:03 +0000
parents 540397b43fb9
children b991f36c80d0
files src/ChangeLog src/callproc.c
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Jan 13 00:46:16 2008 +0000
+++ b/src/ChangeLog	Sun Jan 13 15:15:03 2008 +0000
@@ -1,3 +1,7 @@
+2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* callproc.c: (Fcall_process): Fix previous change.
+
 2008-01-13  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	* (unexsunos4): Remove file, system not supported anymore.
--- a/src/callproc.c	Sun Jan 13 00:46:16 2008 +0000
+++ b/src/callproc.c	Sun Jan 13 15:15:03 2008 +0000
@@ -471,6 +471,12 @@
   else
     {
 #ifndef MSDOS
+      errno = 0;
+      if (pipe (fd) == -1)
+	{
+	  emacs_close (filefd);
+	  report_file_error ("Creating process pipe", Qnil);
+	}
 #endif
 #if 0
       /* Replaced by close_process_descs */