Mercurial > emacs
comparison src/w32proc.c @ 15419:424ef4258b34
(restrict_dos_process): Variable deleted.
(sys_spawnve): Restrict DOS processes on NT as well.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 12 Jun 1996 18:20:11 +0000 |
parents | 68887d34a610 |
children | b5ecd5022991 |
comparison
equal
deleted
inserted
replaced
15418:6344f92ddba2 | 15419:424ef4258b34 |
---|---|
59 | 59 |
60 /* Control conversion of upper case file names to lower case. | 60 /* Control conversion of upper case file names to lower case. |
61 nil means no, t means yes. */ | 61 nil means no, t means yes. */ |
62 Lisp_Object Vwin32_downcase_file_names; | 62 Lisp_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. */ | |
66 BOOL restrict_dos_process; | |
67 BOOL dos_process_running; | 65 BOOL dos_process_running; |
68 | 66 |
69 #ifndef SYS_SIGLIST_DECLARED | 67 #ifndef SYS_SIGLIST_DECLARED |
70 extern char *sys_siglist[]; | 68 extern char *sys_siglist[]; |
71 #endif | 69 #endif |
382 cp->procinfo.hProcess = NULL; | 380 cp->procinfo.hProcess = NULL; |
383 CloseHandle (cp->procinfo.hThread); | 381 CloseHandle (cp->procinfo.hThread); |
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 } |
392 | 389 |
393 /* For asynchronous children, the child_proc resources will be freed | 390 /* For asynchronous children, the child_proc resources will be freed |
621 argv[0] = cmdname; | 618 argv[0] = cmdname; |
622 | 619 |
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; |
630 } | 627 } |
631 | 628 |