Make _sure_ we don't go into an infinite loop if a signal happens!

llvm-svn: 6351
This commit is contained in:
Chris Lattner 2003-05-27 16:25:04 +00:00
parent 490a8fe6b1
commit 6796f5a374
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ static void SignalHandler(int Sig) {
exit(1); // If this is an interrupt signal, exit the program
// Otherwise if it is a fault (like SEGV) reissue the signal to die...
signal(Sig, SIG_DFL);
}
static void RegisterHandler(int Signal) { signal(Signal, SignalHandler); }

View File

@ -42,6 +42,7 @@ static void SignalHandler(int Sig) {
exit(1); // If this is an interrupt signal, exit the program
// Otherwise if it is a fault (like SEGV) reissue the signal to die...
signal(Sig, SIG_DFL);
}
static void RegisterHandler(int Signal) { signal(Signal, SignalHandler); }