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 | b7253150abd05d0a8bbc477b7045ed219ddba9e2 (patch) | |
| tree | 7886688529a98d499cec4fefe6ad85d2492c5ea6 /lib/System/Unix | |
| parent | b215776fa1ee3f1fc389eadc843688c5a0c79a2d (diff) | |
| download | external_llvm-b7253150abd05d0a8bbc477b7045ed219ddba9e2.zip external_llvm-b7253150abd05d0a8bbc477b7045ed219ddba9e2.tar.gz external_llvm-b7253150abd05d0a8bbc477b7045ed219ddba9e2.tar.bz2 | |
fix PR3965:SIGINT handler not restored after calling ParseAST(),
patch by Alexei Svitkine!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
| -rw-r--r-- | lib/System/Unix/Signals.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/Unix/Signals.inc b/lib/System/Unix/Signals.inc index be22bd8..e385e0c 100644 --- a/lib/System/Unix/Signals.inc +++ b/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. |
