changeset 23948:5d7a43e8b133

(_start): Force system calls accessing unmounted devices to fail without prompting.
author Andrew Innes <andrewi@gnu.org>
date Mon, 28 Dec 1998 19:28:19 +0000
parents f01d27883cb1
children 9f8417cca07b
files src/unexw32.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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