diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 17 |
1 files changed, 14 insertions, 3 deletions
| @@ -2131,7 +2131,7 @@ term_ntproc () | |||
| 2131 | #endif | 2131 | #endif |
| 2132 | } | 2132 | } |
| 2133 | 2133 | ||
| 2134 | extern BOOL can_run_dos_process; | 2134 | extern BOOL restrict_dos_process; |
| 2135 | extern BOOL dos_process_running; | 2135 | extern BOOL dos_process_running; |
| 2136 | 2136 | ||
| 2137 | void | 2137 | void |
| @@ -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 */ |