Commits

Anonymous committed d3880df

Fix for aborting from fatal handler.

Comments (0)

Files changed (2)

+2011-02-07  scott snyder  <snyder@bnl.gov>
+
+	* tagging CxxUtils-00-00-70.
+	* src/SealSignal.cxx (fatal): Update last change: move the abort()
+	on null s_fatalReturn to within the region protected by the
+	s_inFatal count.
+
 2010-11-20  scott snyder  <snyder@bnl.gov>
 
 	* tagging CxxUtils-00-00-69.

src/SealSignal.cxx

         return;
     }
 
-    // Return to main program.
-    --s_inFatal;
-
     // Prevent possible infinite recursion...
     if (!s_fatalReturn) // sss
       std::abort();     // sss
 
+    // Return to main program.
+    --s_inFatal;
+
     (*s_fatalReturn) (haveCore ? -sig : sig, info, x);
 }