forked from OSchip/llvm-project
Make _sure_ we don't go into an infinite loop if a signal happens!
llvm-svn: 6351
This commit is contained in:
parent
a418a5fb68
commit
958bce2bd9
|
@ -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); }
|
||||
|
|
|
@ -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); }
|
||||
|
|
Loading…
Reference in New Issue