# HG changeset patch # User Andrew Innes # Date 914873299 0 # Node ID 5d7a43e8b133c2415324e1d84eb24ec0fc4b43c3 # Parent f01d27883cb1443bc77854a266d9fce2fcce1345 (_start): Force system calls accessing unmounted devices to fail without prompting. diff -r f01d27883cb1 -r 5d7a43e8b133 src/unexw32.c --- a/src/unexw32.c Mon Dec 28 19:25:28 1998 +0000 +++ b/src/unexw32.c Mon Dec 28 19:28:19 1998 +0000 @@ -155,6 +155,10 @@ 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