diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32.c | 12 |
1 files changed, 5 insertions, 7 deletions
| @@ -2131,7 +2131,6 @@ term_ntproc () | |||
| 2131 | #endif | 2131 | #endif |
| 2132 | } | 2132 | } |
| 2133 | 2133 | ||
| 2134 | extern BOOL restrict_dos_process; | ||
| 2135 | extern BOOL dos_process_running; | 2134 | extern BOOL dos_process_running; |
| 2136 | 2135 | ||
| 2137 | void | 2136 | void |
| @@ -2212,19 +2211,18 @@ init_ntproc () | |||
| 2212 | fdopen (2, "w"); | 2211 | fdopen (2, "w"); |
| 2213 | } | 2212 | } |
| 2214 | 2213 | ||
| 2215 | /* On Windows 95 only, restrict Emacs to running only one DOS program | 2214 | /* Restrict Emacs to running only one DOS program at a time (with any |
| 2216 | at a time (with any number of Win32 programs). This is to prevent | 2215 | number of Win32 programs). This is to prevent the user from |
| 2217 | the user from running into problems with DOS programs being run in | 2216 | running into problems with DOS programs being run in the same VDM |
| 2218 | the same VDM under Win95. | 2217 | under both Windows 95 and Windows NT. |
| 2219 | 2218 | ||
| 2220 | Note that it is possible for Emacs to run DOS programs in separate | 2219 | Note that it is possible for Emacs to run DOS programs in separate |
| 2221 | VDMs under Win95, but unfortunately the pipe implementation then | 2220 | VDMs, but unfortunately the pipe implementation on Windows 95 then |
| 2222 | fails to report when the DOS process exits (which is supposed to | 2221 | 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 | 2222 | 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 | 2223 | work-around, we must try to avoid letting the user start more than |
| 2225 | one DOS program if possible. */ | 2224 | one DOS program if possible. */ |
| 2226 | 2225 | ||
| 2227 | restrict_dos_process = (GetVersion () & 0x80000000); | ||
| 2228 | dos_process_running = FALSE; | 2226 | dos_process_running = FALSE; |
| 2229 | 2227 | ||
| 2230 | /* unfortunately, atexit depends on implementation of malloc */ | 2228 | /* unfortunately, atexit depends on implementation of malloc */ |