aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-12 18:20:11 +0000
committerRichard M. Stallman1996-06-12 18:20:11 +0000
commit57445e592a0553c274a1aa004cdb796b59567519 (patch)
treef8189dc9e41909bb7f5cbe370e9868f63d0e892c /src
parent6b5edcadd1be1ad2e693e3b130a7e1dad8fe9722 (diff)
downloademacs-57445e592a0553c274a1aa004cdb796b59567519.tar.gz
emacs-57445e592a0553c274a1aa004cdb796b59567519.zip
(restrict_dos_process): Variable deleted.
(sys_spawnve): Restrict DOS processes on NT as well.
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index 790b7d2dabe..01ffd33bebb 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -61,9 +61,7 @@ Lisp_Object Vwin32_pipe_read_delay;
61 nil means no, t means yes. */ 61 nil means no, t means yes. */
62Lisp_Object Vwin32_downcase_file_names; 62Lisp_Object Vwin32_downcase_file_names;
63 63
64/* Keep track of whether we have already started a DOS program, and 64/* Keep track of whether we have already started a DOS program. */
65 whether we can run them in the first place. */
66BOOL restrict_dos_process;
67BOOL dos_process_running; 65BOOL dos_process_running;
68 66
69#ifndef SYS_SIGLIST_DECLARED 67#ifndef SYS_SIGLIST_DECLARED
@@ -384,8 +382,7 @@ reap_subprocess (child_process *cp)
384 cp->procinfo.hThread = NULL; 382 cp->procinfo.hThread = NULL;
385 383
386 /* If this was a DOS process, indicate that it is now safe to 384 /* If this was a DOS process, indicate that it is now safe to
387 start a new one. dos_process_running is only referred to under 385 start a new one. */
388 Win95, so it doesn't matter if it is incorrect on NT. */
389 if (cp->is_dos_process) 386 if (cp->is_dos_process)
390 dos_process_running = FALSE; 387 dos_process_running = FALSE;
391 } 388 }
@@ -623,7 +620,7 @@ sys_spawnve (int mode, char *cmdname, char **argv, char **envp)
623 /* Check if program is a DOS executable, and if so whether we are 620 /* Check if program is a DOS executable, and if so whether we are
624 allowed to start it. */ 621 allowed to start it. */
625 is_dos_binary = win32_is_dos_binary (cmdname); 622 is_dos_binary = win32_is_dos_binary (cmdname);
626 if (is_dos_binary && restrict_dos_process && dos_process_running) 623 if (is_dos_binary && dos_process_running)
627 { 624 {
628 errno = EAGAIN; 625 errno = EAGAIN;
629 return -1; 626 return -1;