aboutsummaryrefslogtreecommitdiffstats
path: root/support/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-27 16:25:04 +0000
committerChris Lattner <sabre@nondot.org>2003-05-27 16:25:04 +0000
commit39602b2002cf8b640226df767ee924a9d42a5c0f (patch)
tree40592c8bd433c2446002f68802e60a30bef49536 /support/lib
parent8879c82ff49641bab37f239b63a570db0d4e07e2 (diff)
downloadexternal_llvm-39602b2002cf8b640226df767ee924a9d42a5c0f.zip
external_llvm-39602b2002cf8b640226df767ee924a9d42a5c0f.tar.gz
external_llvm-39602b2002cf8b640226df767ee924a9d42a5c0f.tar.bz2
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
Diffstat (limited to 'support/lib')
-rw-r--r--support/lib/Support/Signals.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/lib/Support/Signals.cpp b/support/lib/Support/Signals.cpp
index 38fb9dd..503d3a6 100644
--- a/support/lib/Support/Signals.cpp
+++ b/support/lib/Support/Signals.cpp
@@ -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); }