From ce8b7d2e2460665f1df8026de7c92dc0df78e7ba Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 12 Apr 2009 23:33:13 +0000 Subject: fix PR3965:SIGINT handler not restored after calling ParseAST(), patch by Alexei Svitkine! llvm-svn: 68929 --- llvm/lib/System/Unix/Signals.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/System/Unix') 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. -- cgit v1.2.3