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

Chris Lattner lattner at cs.uiuc.edu
Sun Jul 25 00:34:11 PDT 2004



Changes in directory llvm/lib/Support:

SystemUtils.cpp updated: 1.32 -> 1.33

---
Log message:

Remove linux/solaris specific stuff.


---
Diffs of the changes:  (+3 -1)

Index: llvm/lib/Support/SystemUtils.cpp
diff -u llvm/lib/Support/SystemUtils.cpp:1.32 llvm/lib/Support/SystemUtils.cpp:1.33
--- llvm/lib/Support/SystemUtils.cpp:1.32	Sat Jul 24 02:50:48 2004
+++ llvm/lib/Support/SystemUtils.cpp	Sun Jul 25 02:34:00 2004
@@ -27,6 +27,7 @@
 #include <cstdlib>
 #include <fstream>
 #include <iostream>
+#include <signal.h>
 using namespace llvm;
 
 /// isExecutableFile - This function returns true if the filename specified
@@ -174,7 +175,8 @@
   struct sigaction Act, Old;
   Act.sa_sigaction = 0;
   Act.sa_handler = TimeOutHandler;
-  Act.sa_flags = SA_NOMASK;
+  sigemptyset(&Act.sa_mask);
+  Act.sa_flags = 0;
   sigaction(SIGALRM, &Act, &Old);
 
   // Set the timeout if one is set.





More information about the llvm-commits mailing list