From 4a7164a84dfaab6c724e94fa4031c31182191a0a Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Tue, 14 Oct 2014 10:15:22 +0200 Subject: [PATCH] removed signal handler that didn't help --- lib/Basics/process-utils.cpp | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/lib/Basics/process-utils.cpp b/lib/Basics/process-utils.cpp index 5353ae4a18..f4abf7efa5 100644 --- a/lib/Basics/process-utils.cpp +++ b/lib/Basics/process-utils.cpp @@ -48,7 +48,7 @@ #include #endif -#ifdef WIN32 +#ifdef _WIN32 #include #include #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 } ////////////////////////////////////////////////////////////////////////////////