aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-06-12 15:58:53 +0000
committerRichard M. Stallman1996-06-12 15:58:53 +0000
commit4ffab11c42e4510456fe4bd5988ecc2b063b5661 (patch)
tree5bf2f847aaf17b50f9588f5615a03e1088555c0c /src
parent0e9b572a6986f5ac6db10f7433eb84a6b8b99d11 (diff)
downloademacs-4ffab11c42e4510456fe4bd5988ecc2b063b5661.tar.gz
emacs-4ffab11c42e4510456fe4bd5988ecc2b063b5661.zip
(restrict_dos_process): Renamed from can_run_dos_process.
(init_ntproc): Refer to restrict_dos_process.
Diffstat (limited to 'src')
-rw-r--r--src/w32.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/w32.c b/src/w32.c
index bd6fdd9a2da..9a552e9565c 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -2131,7 +2131,7 @@ term_ntproc ()
2131#endif 2131#endif
2132} 2132}
2133 2133
2134extern BOOL can_run_dos_process; 2134extern BOOL restrict_dos_process;
2135extern BOOL dos_process_running; 2135extern BOOL dos_process_running;
2136 2136
2137void 2137void
@@ -2212,8 +2212,19 @@ init_ntproc ()
2212 fdopen (2, "w"); 2212 fdopen (2, "w");
2213 } 2213 }
2214 2214
2215 /* Only allow Emacs to run DOS programs on Win95. */ 2215 /* On Windows 95 only, restrict Emacs to running only one DOS program
2216 can_run_dos_process = (GetVersion () & 0x80000000); 2216 at a time (with any number of Win32 programs). This is to prevent
2217 the user from running into problems with DOS programs being run in
2218 the same VDM under Win95.
2219
2220 Note that it is possible for Emacs to run DOS programs in separate
2221 VDMs under Win95, but unfortunately the pipe implementation then
2222 fails to report when the DOS process exits (which is supposed to
2223 break the pipe). Until this bug is fixed, or we can devise a
2224 work-around, we must try to avoid letting the user start more than
2225 one DOS program if possible. */
2226
2227 restrict_dos_process = (GetVersion () & 0x80000000);
2217 dos_process_running = FALSE; 2228 dos_process_running = FALSE;
2218 2229
2219 /* unfortunately, atexit depends on implementation of malloc */ 2230 /* unfortunately, atexit depends on implementation of malloc */