commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r818906 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
Date Fri, 25 Sep 2009 16:15:24 GMT
Author: mturk
Date: Fri Sep 25 16:15:23 2009
New Revision: 818906

URL: http://svn.apache.org/viewvc?rev=818906&view=rev
Log:
Ignore exceptions on process exit

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

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c?rev=818906&r1=818905&r2=818906&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c Fri Sep 25 16:15:23 2009
@@ -153,7 +153,13 @@
                 TlsFree(dll_tls_index);
             }
             dll_tls_index = TLS_OUT_OF_INDEXES;
-            acr_dll_exit();
+            __try {
+                acr_dll_exit();
+            }
+            __except(EXCEPTION_EXECUTE_HANDLER) {
+                /* Don't crash on process exit
+                 */
+            }
             dll_instance = NULL;
         break;
         default:



Mime
View raw message