[llvm-commits] [llvm] r68929 - /llvm/trunk/lib/System/Unix/Signals.inc

Chris Lattner sabre at nondot.org
Sun Apr 12 16:33:14 PDT 2009


Author: lattner
Date: Sun Apr 12 18:33:13 2009
New Revision: 68929

URL: http://llvm.org/viewvc/llvm-project?rev=68929&view=rev
Log:
fix PR3965:SIGINT handler not restored after calling ParseAST(),
patch by Alexei Svitkine!

Modified:
    llvm/trunk/lib/System/Unix/Signals.inc

Modified: llvm/trunk/lib/System/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Signals.inc?rev=68929&r1=68928&r2=68929&view=diff

==============================================================================
--- llvm/trunk/lib/System/Unix/Signals.inc (original)
+++ llvm/trunk/lib/System/Unix/Signals.inc Sun Apr 12 18:33:13 2009
@@ -126,7 +126,8 @@
       IF();        // run the interrupt function.
       return;
     }
-    exit(1);   // If this is an interrupt signal, exit the program
+    raise(Sig);   // Execute the default handler.
+    return;
   }
 
   // Otherwise if it is a fault (like SEGV) run any handler.





More information about the llvm-commits mailing list