diff options
| author | Andrew Innes | 1998-12-28 19:28:19 +0000 |
|---|---|---|
| committer | Andrew Innes | 1998-12-28 19:28:19 +0000 |
| commit | 467af476c1ba9c36f6a621fde0e7cfd531b95ec3 (patch) | |
| tree | 34ba03cc7fca781bc12bd43064334fa64679d2c0 /src | |
| parent | d78e84f792e68c4db0e775a977c70e09871d23e1 (diff) | |
| download | emacs-467af476c1ba9c36f6a621fde0e7cfd531b95ec3.tar.gz emacs-467af476c1ba9c36f6a621fde0e7cfd531b95ec3.zip | |
(_start): Force system calls accessing unmounted devices to fail
without prompting.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexw32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unexw32.c b/src/unexw32.c index 2363e7e73d0..f7314e79207 100644 --- a/src/unexw32.c +++ b/src/unexw32.c | |||
| @@ -155,6 +155,10 @@ _start (void) | |||
| 155 | having us exit. */ | 155 | having us exit. */ |
| 156 | SetConsoleCtrlHandler ((PHANDLER_ROUTINE) ctrl_c_handler, TRUE); | 156 | SetConsoleCtrlHandler ((PHANDLER_ROUTINE) ctrl_c_handler, TRUE); |
| 157 | 157 | ||
| 158 | /* Prevent Emacs from being locked up (eg. in batch mode) when | ||
| 159 | accessing devices that aren't mounted (eg. removable media drives). */ | ||
| 160 | SetErrorMode (SEM_FAILCRITICALERRORS); | ||
| 161 | |||
| 158 | /* Invoke the NT CRT startup routine now that our housecleaning | 162 | /* Invoke the NT CRT startup routine now that our housecleaning |
| 159 | is finished. */ | 163 | is finished. */ |
| 160 | #ifdef HAVE_NTGUI | 164 | #ifdef HAVE_NTGUI |