Lines Matching refs:wstatus
267 DWORD wstatus; in proc_open_rsrc_dtor() local
269 int wstatus; in proc_open_rsrc_dtor() local
291 GetExitCodeProcess(proc->childHandle, &wstatus); in proc_open_rsrc_dtor()
292 if (wstatus == STILL_ACTIVE) { in proc_open_rsrc_dtor()
295 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
304 wait_pid = waitpid_cached(proc, &wstatus, waitpid_options); in proc_open_rsrc_dtor()
310 if (WIFEXITED(wstatus)) { in proc_open_rsrc_dtor()
311 wstatus = WEXITSTATUS(wstatus); in proc_open_rsrc_dtor()
313 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
390 DWORD wstatus; in PHP_FUNCTION() local
392 int wstatus; in PHP_FUNCTION() local
412 GetExitCodeProcess(proc->childHandle, &wstatus); in PHP_FUNCTION()
413 running = wstatus == STILL_ACTIVE; in PHP_FUNCTION()
414 exitcode = running ? -1 : wstatus; in PHP_FUNCTION()
421 wait_pid = waitpid_cached(proc, &wstatus, WNOHANG|WUNTRACED); in PHP_FUNCTION()
424 if (WIFEXITED(wstatus)) { in PHP_FUNCTION()
426 exitcode = WEXITSTATUS(wstatus); in PHP_FUNCTION()
428 if (WIFSIGNALED(wstatus)) { in PHP_FUNCTION()
431 termsig = WTERMSIG(wstatus); in PHP_FUNCTION()
433 if (WIFSTOPPED(wstatus)) { in PHP_FUNCTION()
435 stopsig = WSTOPSIG(wstatus); in PHP_FUNCTION()