diff src/callproc.c @ 15087:46157341f721

(Fcall_process) [WINDOWSNT]: Remove conditional NT code. (Fcall_process_region) [DOSNT]: Canonicalize slashes in filename. (child_setup) [WINDOWSNT]: Decrease handles array by one.
author Richard M. Stallman <rms@gnu.org>
date Fri, 26 Apr 1996 19:52:37 +0000
parents c001b28bf068
children 221e646ed633
line wrap: on
line diff
--- a/src/callproc.c	Fri Apr 26 19:46:05 1996 +0000
+++ b/src/callproc.c	Fri Apr 26 19:52:37 1996 +0000
@@ -352,11 +352,7 @@
   else
     {
 #ifndef MSDOS
-#ifdef WINDOWSNT
-      pipe_with_inherited_out (fd);
-#else  /* not WINDOWSNT */
       pipe (fd);
-#endif /* not WINDOWSNT */
 #endif
 #if 0
       /* Replaced by close_process_descs */
@@ -631,7 +627,6 @@
       tempfile = alloca (20);
       *tempfile = '\0';
     }
-  dostounix_filename (tempfile);
   if (!IS_DIRECTORY_SEP (tempfile[strlen (tempfile) - 1]))
     strcat (tempfile, "/");
 #ifdef WINDOWSNT
@@ -639,6 +634,10 @@
 #else
   strcat (tempfile, "detmp.XXX");
 #endif
+  if ('/' == DIRECTORY_SEP)
+    dostounix_filename (tempfile);
+  else
+    unixtodos_filename (tempfile);
 #else /* not DOS_NT */
 
 #ifdef VMS
@@ -708,7 +707,7 @@
   char *pwd_var;
 #ifdef WINDOWSNT
   int cpid;
-  HANDLE handles[4];
+  HANDLE handles[3];
 #endif /* WINDOWSNT */
 
   int pid = getpid ();