summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/proc_open.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/proc_open.c b/ext/standard/proc_open.c
index b86d48217a..3efa4c775e 100644
--- a/ext/standard/proc_open.c
+++ b/ext/standard/proc_open.c
@@ -402,6 +402,7 @@ PHP_FUNCTION(proc_get_status)
exitcode = WEXITSTATUS(wstatus);
}
if (WIFSIGNALED(wstatus)) {
+ running = 0;
signaled = 1;
#ifdef NETWARE
termsig = WIFTERMSIG(wstatus);
@@ -413,7 +414,7 @@ PHP_FUNCTION(proc_get_status)
stopped = 1;
stopsig = WSTOPSIG(wstatus);
}
- } else {
+ } else if (wait_pid == -1) {
running = 0;
}
#endif