Commit 4252a4bd authored by Richard M. Stallman's avatar Richard M. Stallman

(Fcall_process) [WINDOWSNT]: Remove conditional NT code.

(Fcall_process_region) [DOSNT]: Canonicalize slashes in filename.
(child_setup) [WINDOWSNT]: Decrease handles array by one.
parent 234ae99a
......@@ -352,11 +352,7 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
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 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
tempfile = alloca (20);
*tempfile = '\0';
}
dostounix_filename (tempfile);
if (!IS_DIRECTORY_SEP (tempfile[strlen (tempfile) - 1]))
strcat (tempfile, "/");
#ifdef WINDOWSNT
......@@ -639,6 +634,10 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
#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 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
char *pwd_var;
#ifdef WINDOWSNT
int cpid;
HANDLE handles[4];
HANDLE handles[3];
#endif /* WINDOWSNT */
int pid = getpid ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment