1
0
Fork 0

removed signal handler that didn't help

This commit is contained in:
Jan Steemann 2014-10-14 10:15:22 +02:00
parent 48e126c620
commit 4a7164a84d
1 changed files with 1 additions and 21 deletions

View File

@ -48,7 +48,7 @@
#include <sys/wait.h>
#endif
#ifdef WIN32
#ifdef _WIN32
#include <Psapi.h>
#include <TlHelp32.h>
#endif
@ -220,15 +220,6 @@ static bool CreatePipes (int* pipe_server_to_child,
return true;
}
////////////////////////////////////////////////////////////////////////////////
/// @brief handler for SIGCHLD
////////////////////////////////////////////////////////////////////////////////
static void handleSigchld (int sig) {
// intentionally do nothing here
// we'll use waitpid() for reaping children later
}
////////////////////////////////////////////////////////////////////////////////
/// @brief starts external process
////////////////////////////////////////////////////////////////////////////////
@ -1280,17 +1271,6 @@ void TRI_InitialiseProcess (int argc, char* argv[]) {
TRI_InitVectorPointer(&ExternalProcesses, TRI_CORE_MEM_ZONE);
TRI_InitMutex(&ExternalProcessesLock);
#ifndef WIN32
// initialise a signal handler for SIGCHLD
struct sigaction sa;
sa.sa_handler = &handleSigchld;
sigemptyset(&sa.sa_mask);
sa.sa_flags = SA_RESTART | SA_NOCLDSTOP;
if (sigaction(SIGCHLD, &sa, 0) == -1) {
// installation of signal handler failed
}
#endif
}
////////////////////////////////////////////////////////////////////////////////