comparison src/w32.c @ 15414:81cf9a7fd6ca

(restrict_dos_process): Renamed from can_run_dos_process. (init_ntproc): Refer to restrict_dos_process.
author Richard M. Stallman <rms@gnu.org>
date Wed, 12 Jun 1996 15:58:53 +0000
parents 6686192ea2b3
children 6344f92ddba2
comparison
equal deleted inserted replaced
15413:733b5def9d51 15414:81cf9a7fd6ca
2129 /* shutdown the socket interface if necessary */ 2129 /* shutdown the socket interface if necessary */
2130 term_winsock (); 2130 term_winsock ();
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
2138 init_ntproc () 2138 init_ntproc ()
2139 { 2139 {
2210 else 2210 else
2211 open ("nul", O_TEXT | O_NOINHERIT | O_WRONLY); 2211 open ("nul", O_TEXT | O_NOINHERIT | O_WRONLY);
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 */
2220 /* atexit (term_ntproc); */ 2231 /* atexit (term_ntproc); */
2221 signal (SIGABRT, term_ntproc); 2232 signal (SIGABRT, term_ntproc);