mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Make _sure_ we don't go into an infinite loop if a signal happens!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8879c82ff4
commit
39602b2002
@ -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…
x
Reference in New Issue
Block a user