Browse Source

Fix unix version of ChildProcess::isRunning() when SIGINT is used

tags/v1.9.9
falkTX 7 years ago
parent
commit
7c846b0bf1
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/modules/water/threads/ChildProcess.cpp

+ 3
- 3
source/modules/water/threads/ChildProcess.cpp View File

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


Loading…
Cancel
Save