From 7c846b0bf1b02aaebacdff6301d4a3161c430529 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 21 May 2018 12:33:05 +0200 Subject: [PATCH] Fix unix version of ChildProcess::isRunning() when SIGINT is used --- source/modules/water/threads/ChildProcess.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/modules/water/threads/ChildProcess.cpp b/source/modules/water/threads/ChildProcess.cpp index 776fd28f1..87f961165 100644 --- a/source/modules/water/threads/ChildProcess.cpp +++ b/source/modules/water/threads/ChildProcess.cpp @@ -208,9 +208,9 @@ public: { if (childPID != 0) { - int childState; - const int pid = waitpid (childPID, &childState, WNOHANG); - return pid == 0 || ! (WIFEXITED (childState) || WIFSIGNALED (childState)); + int childState = 0; + const int pid = waitpid (childPID, &childState, WNOHANG|WUNTRACED); + return pid == 0 || ! (WIFEXITED (childState) || WIFSIGNALED (childState) || WIFSTOPPED (childState)); } return false;