Changeset: 25fc1d998319 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=25fc1d998319
Modified Files:
        gdk/gdk_utils.mx
Branch: Aug2011
Log Message:

On Windows, abort() causes exit value 3, so do that here too.
Also, we don't need an extra message about it, and we want messages
from the runtime to go to stderr.
In fact, it seems we don't need to catch SIGABRT anymore, but it
doesn't do any harm.


diffs (20 lines):

diff --git a/gdk/gdk_utils.mx b/gdk/gdk_utils.mx
--- a/gdk/gdk_utils.mx
+++ b/gdk/gdk_utils.mx
@@ -275,7 +275,7 @@ BATSIGignore(int nr)
 static void
 BATSIGabort(int nr)
 {
-       GDKfatal("BATSIGabort: signal %d caught by thread " SZFMT "\n", nr, 
(size_t) MT_getpid());
+       GDKexit(3);             /* emulate Windows exit code without pop-up */
 }
 #endif
 
@@ -1709,6 +1709,7 @@ GDKinit(opt *set, int setlen)
 #ifdef WIN32
        (void) signal(SIGABRT, BATSIGabort);
        _set_abort_behavior(0, _CALL_REPORTFAULT | _WRITE_ABORT_MSG);
+       _set_error_mode(_OUT_TO_STDERR);
 #endif
        GDKlockHome();
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to