]> granicus.if.org Git - gc/commitdiff
Replace exit(1) with EXIT call in catch_exception_raise (code refactoring)
authorIvan Maidanski <ivmai@mail.ru>
Sat, 23 Jun 2012 19:37:30 +0000 (23:37 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 23 Jun 2012 20:13:14 +0000 (00:13 +0400)
* os_dep.c (catch_exception_raise): Replace exit(EXIT_FAILURE) call
with EXIT() macro call.

os_dep.c

index 4fb24eb51789089d9124e38052fcc104231909e8..3dda4c071d02f037696afde9f967330525dbba50 100644 (file)
--- a/os_dep.c
+++ b/os_dep.c
@@ -4398,7 +4398,7 @@ catch_exception_raise(mach_port_t exception_port GC_ATTR_UNUSED,
       /* Can't pass it along to the signal handler because that is      */
       /* ignoring SIGBUS signals.  We also shouldn't call ABORT here as */
       /* signals don't always work too well from the exception handler. */
-      exit(EXIT_FAILURE);
+      EXIT();
 #   else /* BROKEN_EXCEPTION_HANDLING */
       /* Pass it along to the next exception handler
          (which should call SIGBUS/SIGSEGV) */