mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
Make _sure_ we don't go into an infinite loop if a signal happens!
llvm-svn: 6351
This commit is contained in:
parent
490a8fe6b1
commit
6796f5a374
@ -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
Block a user