fix PR3965:SIGINT handler not restored after calling ParseAST(),

patch by Alexei Svitkine!

llvm-svn: 68929
This commit is contained in:
Chris Lattner 2009-04-12 23:33:13 +00:00
parent bdccb0393c
commit ce8b7d2e24
1 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ static RETSIGTYPE SignalHandler(int Sig) {
IF(); // run the interrupt function. IF(); // run the interrupt function.
return; 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. // Otherwise if it is a fault (like SEGV) run any handler.