diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-27 16:25:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-27 16:25:04 +0000 |
commit | 958bce2bd9f06e6ac58f246868cb9e8101decdd6 (patch) | |
tree | 19a8985162711e4bd08f799e7cf6c0658137ab5b /llvm/lib/Support/Signals.cpp | |
parent | a418a5fb6800b27c709ac48bb7eaccbcee4cd0db (diff) | |
download | bcm5719-llvm-958bce2bd9f06e6ac58f246868cb9e8101decdd6.tar.gz bcm5719-llvm-958bce2bd9f06e6ac58f246868cb9e8101decdd6.zip |
Make _sure_ we don't go into an infinite loop if a signal happens!
llvm-svn: 6351
Diffstat (limited to 'llvm/lib/Support/Signals.cpp')
-rw-r--r-- | llvm/lib/Support/Signals.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |