diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-12 23:33:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-12 23:33:13 +0000 |
commit | ce8b7d2e2460665f1df8026de7c92dc0df78e7ba (patch) | |
tree | d06a1491aa7ee4271e5ab4e91a761d2ffcf94e37 /llvm/lib/System/Unix | |
parent | bdccb0393c0b336b5065d2de2a3e07cfebd96cd7 (diff) | |
download | bcm5719-llvm-ce8b7d2e2460665f1df8026de7c92dc0df78e7ba.tar.gz bcm5719-llvm-ce8b7d2e2460665f1df8026de7c92dc0df78e7ba.zip |
fix PR3965:SIGINT handler not restored after calling ParseAST(),
patch by Alexei Svitkine!
llvm-svn: 68929
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Signals.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Signals.inc b/llvm/lib/System/Unix/Signals.inc index be22bd83fc0..e385e0c5566 100644 --- a/llvm/lib/System/Unix/Signals.inc +++ b/llvm/lib/System/Unix/Signals.inc @@ -126,7 +126,8 @@ static RETSIGTYPE SignalHandler(int Sig) { 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. |