Lines Matching refs:wstatus
236 DWORD wstatus; in proc_open_rsrc_dtor() local
238 int wstatus; in proc_open_rsrc_dtor() local
260 GetExitCodeProcess(proc->childHandle, &wstatus); in proc_open_rsrc_dtor()
261 if (wstatus == STILL_ACTIVE) { in proc_open_rsrc_dtor()
264 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
273 wait_pid = waitpid(proc->child, &wstatus, waitpid_options); in proc_open_rsrc_dtor()
279 if (WIFEXITED(wstatus)) { in proc_open_rsrc_dtor()
280 wstatus = WEXITSTATUS(wstatus); in proc_open_rsrc_dtor()
282 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
359 DWORD wstatus; in PHP_FUNCTION() local
361 int wstatus; in PHP_FUNCTION() local
381 GetExitCodeProcess(proc->childHandle, &wstatus); in PHP_FUNCTION()
382 running = wstatus == STILL_ACTIVE; in PHP_FUNCTION()
383 exitcode = running ? -1 : wstatus; in PHP_FUNCTION()
386 wait_pid = waitpid(proc->child, &wstatus, WNOHANG|WUNTRACED); in PHP_FUNCTION()
389 if (WIFEXITED(wstatus)) { in PHP_FUNCTION()
391 exitcode = WEXITSTATUS(wstatus); in PHP_FUNCTION()
393 if (WIFSIGNALED(wstatus)) { in PHP_FUNCTION()
396 termsig = WTERMSIG(wstatus); in PHP_FUNCTION()
398 if (WIFSTOPPED(wstatus)) { in PHP_FUNCTION()
400 stopsig = WSTOPSIG(wstatus); in PHP_FUNCTION()