projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f542649
)
Remove linux/solaris specific stuff.
author
Chris Lattner
<sabre@nondot.org>
Sun, 25 Jul 2004 07:34:00 +0000
(07:34 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 25 Jul 2004 07:34:00 +0000
(07:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15195
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/SystemUtils.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/SystemUtils.cpp
b/lib/Support/SystemUtils.cpp
index 354f1a3fcd6a7d61c0214d8cd2b92348cea9ec5e..b831f4096d0f4facbc7b73c1902e333b0433c5e7 100644
(file)
--- a/
lib/Support/SystemUtils.cpp
+++ b/
lib/Support/SystemUtils.cpp
@@
-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
@@
int llvm::RunProgramWithTimeout(const std::string &ProgramPath,
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.