diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-04-07 23:07:45 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-04-07 23:07:45 +0000 |
commit | 5355bdc788934f6417658df8f23b59d48e7c1281 (patch) | |
tree | 51699de9b4c426e62aa982c55dec3a463fe569c5 | |
parent | d57f08147dc90cc6186b23859c0a6233af8cedbf (diff) | |
download | php-git-5355bdc788934f6417658df8f23b59d48e7c1281.tar.gz |
Fixed bug #32533 (proc_get_status() returns the incorrect process status).
-rw-r--r-- | ext/standard/proc_open.c | 3 |
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 |