diff options
author | Andrew Innes <andrewi@gnu.org> | 1998-12-28 19:28:19 +0000 |
---|---|---|
committer | Andrew Innes <andrewi@gnu.org> | 1998-12-28 19:28:19 +0000 |
commit | 3776a891265192b3b778128ff8f47e67ab29e6de (patch) | |
tree | 09238e16809c119b1a8cdb34c326c06c8def745c /src/unexw32.c | |
parent | 1f466670ad410828a5fad4b20abd4b0e8009db66 (diff) | |
download | emacs-3776a891265192b3b778128ff8f47e67ab29e6de.tar.gz |
(_start): Force system calls accessing unmounted devices to fail
without prompting.
Diffstat (limited to 'src/unexw32.c')
-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) having us exit. */ SetConsoleCtrlHandler ((PHANDLER_ROUTINE) ctrl_c_handler, TRUE); + /* Prevent Emacs from being locked up (eg. in batch mode) when + accessing devices that aren't mounted (eg. removable media drives). */ + SetErrorMode (SEM_FAILCRITICALERRORS); + /* Invoke the NT CRT startup routine now that our housecleaning is finished. */ #ifdef HAVE_NTGUI |