1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Remove linux/solaris specific stuff.

llvm-svn: 15195
This commit is contained in:
Chris Lattner 2004-07-25 07:34:00 +00:00
parent 7630df9aa0
commit db6b0d2361

View File

@ -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.