commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r816355 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c
Date Thu, 17 Sep 2009 19:47:15 GMT
Author: mturk
Date: Thu Sep 17 19:47:14 2009
New Revision: 816355

URL: http://svn.apache.org/viewvc?rev=816355&view=rev
Log:
Always use CRT 'fast' exit

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c?rev=816355&r1=816354&r2=816355&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/signals.c Thu Sep 17 19:47:14 2009
@@ -199,6 +199,8 @@
         case SIGBUS:
         case SIGSEGV:
             _E = ACR_GetJNIEnv();
+
+            pre_exit_cleanup();
             if (IS_VALID_HANDLE(_E)) {
                 (*_E)->FatalError(_E, strsignal(sig));
             }
@@ -206,8 +208,7 @@
                 fprintf(stderr, "[native] Fatal - %s\n", strsignal(sig));
                 fprintf(stderr, "[native] Terminating ...\n");
                 fflush(stderr);
-                pre_exit_cleanup();
-                ExitProcess(sig);
+                _exit(sig);
             }
         break;
         case SIGQUIT:
@@ -220,7 +221,7 @@
                 fprintf(stderr, "[native] Terminating ...\n");
                 fflush(stderr);
                 pre_exit_cleanup();
-                ExitProcess(sig);
+                _exit(sig);
             }
         break;
         default:



Mime
View raw message