From 958bce2bd9f06e6ac58f246868cb9e8101decdd6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 27 May 2003 16:25:04 +0000 Subject: Make _sure_ we don't go into an infinite loop if a signal happens! llvm-svn: 6351 --- llvm/lib/Support/Signals.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Support/Signals.cpp') diff --git a/llvm/lib/Support/Signals.cpp b/llvm/lib/Support/Signals.cpp index 38fb9ddb811..503d3a63b29 100644 --- a/llvm/lib/Support/Signals.cpp +++ b/llvm/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); } -- cgit v1.2.3