aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-04-26 19:52:37 +0000
committerRichard M. Stallman1996-04-26 19:52:37 +0000
commit4252a4bd63986fb1df56014d623d67e9f4f0315b (patch)
tree954889f110287761d113311a9933b47954bad788 /src
parent234ae99a66885434cd60b5f0df947c3f18603f71 (diff)
downloademacs-4252a4bd63986fb1df56014d623d67e9f4f0315b.tar.gz
emacs-4252a4bd63986fb1df56014d623d67e9f4f0315b.zip
(Fcall_process) [WINDOWSNT]: Remove conditional NT code.
(Fcall_process_region) [DOSNT]: Canonicalize slashes in filename. (child_setup) [WINDOWSNT]: Decrease handles array by one.
Diffstat (limited to 'src')
-rw-r--r--src/callproc.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 5e8be77182b..5fda6d61b0a 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -352,11 +352,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
352 else 352 else
353 { 353 {
354#ifndef MSDOS 354#ifndef MSDOS
355#ifdef WINDOWSNT
356 pipe_with_inherited_out (fd);
357#else /* not WINDOWSNT */
358 pipe (fd); 355 pipe (fd);
359#endif /* not WINDOWSNT */
360#endif 356#endif
361#if 0 357#if 0
362 /* Replaced by close_process_descs */ 358 /* Replaced by close_process_descs */
@@ -631,7 +627,6 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
631 tempfile = alloca (20); 627 tempfile = alloca (20);
632 *tempfile = '\0'; 628 *tempfile = '\0';
633 } 629 }
634 dostounix_filename (tempfile);
635 if (!IS_DIRECTORY_SEP (tempfile[strlen (tempfile) - 1])) 630 if (!IS_DIRECTORY_SEP (tempfile[strlen (tempfile) - 1]))
636 strcat (tempfile, "/"); 631 strcat (tempfile, "/");
637#ifdef WINDOWSNT 632#ifdef WINDOWSNT
@@ -639,6 +634,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
639#else 634#else
640 strcat (tempfile, "detmp.XXX"); 635 strcat (tempfile, "detmp.XXX");
641#endif 636#endif
637 if ('/' == DIRECTORY_SEP)
638 dostounix_filename (tempfile);
639 else
640 unixtodos_filename (tempfile);
642#else /* not DOS_NT */ 641#else /* not DOS_NT */
643 642
644#ifdef VMS 643#ifdef VMS
@@ -708,7 +707,7 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
708 char *pwd_var; 707 char *pwd_var;
709#ifdef WINDOWSNT 708#ifdef WINDOWSNT
710 int cpid; 709 int cpid;
711 HANDLE handles[4]; 710 HANDLE handles[3];
712#endif /* WINDOWSNT */ 711#endif /* WINDOWSNT */
713 712
714 int pid = getpid (); 713 int pid = getpid ();