[llvm-commits] CVS: llvm/lib/Support/Signals.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue May 27 11:26:01 PDT 2003


Changes in directory llvm/lib/Support:

Signals.cpp updated: 1.4 -> 1.5

---
Log message:

Make _sure_ we don't go into an infinite loop if a signal happens!


---
Diffs of the changes:

Index: llvm/lib/Support/Signals.cpp
diff -u llvm/lib/Support/Signals.cpp:1.4 llvm/lib/Support/Signals.cpp:1.5
--- llvm/lib/Support/Signals.cpp:1.4	Thu May 22 16:59:35 2003
+++ llvm/lib/Support/Signals.cpp	Tue May 27 11:25:04 2003
@@ -42,6 +42,7 @@
     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); }





More information about the llvm-commits mailing list