mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
Remove linux/solaris specific stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f542649f1b
commit
d67e439241
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user