# HG changeset patch # User Richard M. Stallman # Date 834595329 0 # Node ID 68887d34a61083892c7c7948f22183b53e72f93e # Parent 81cf9a7fd6cae915a5ee95e86f8f8d1908bc6884 (restrict_dos_process): Renamed from can_run_dos_process. (sys_spawnve): Refer to restrict_dos_process. diff -r 81cf9a7fd6ca -r 68887d34a610 src/w32proc.c --- a/src/w32proc.c Wed Jun 12 15:58:53 1996 +0000 +++ b/src/w32proc.c Wed Jun 12 16:02:09 1996 +0000 @@ -63,7 +63,7 @@ /* 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 @@ 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 @@ /* 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; }