summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-12 16:02:09 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-12 16:02:09 +0000
commit5efe49a096d84d6a4071199211a7b06c93d4d26d (patch)
tree1c6999c2edead7021b2b8731a1ff56cd81316509
parenta528c21355e2320163ae3fd9d5cc12197d30ed65 (diff)
downloademacs-5efe49a096d84d6a4071199211a7b06c93d4d26d.tar.gz
(restrict_dos_process): Renamed from can_run_dos_process.
(sys_spawnve): Refer to restrict_dos_process.
-rw-r--r--src/w32proc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 89167148854..790b7d2dabe 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -63,7 +63,7 @@ Lisp_Object Vwin32_downcase_file_names;
/* Keep track of whether we have already started a DOS program, and
whether we can run them in the first place. */
-BOOL can_run_dos_process;
+BOOL restrict_dos_process;
BOOL dos_process_running;
#ifndef SYS_SIGLIST_DECLARED
@@ -384,7 +384,8 @@ reap_subprocess (child_process *cp)
cp->procinfo.hThread = NULL;
/* If this was a DOS process, indicate that it is now safe to
- start a new one. */
+ start a new one. dos_process_running is only referred to under
+ Win95, so it doesn't matter if it is incorrect on NT. */
if (cp->is_dos_process)
dos_process_running = FALSE;
}
@@ -622,9 +623,9 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
/* Check if program is a DOS executable, and if so whether we are
allowed to start it. */
is_dos_binary = win32_is_dos_binary (cmdname);
- if (is_dos_binary && (!can_run_dos_process || dos_process_running))
+ if (is_dos_binary && restrict_dos_process && dos_process_running)
{
- errno = (can_run_dos_process) ? EAGAIN : EINVAL;
+ errno = EAGAIN;
return -1;
}