Lines Matching refs:wstatus
183 DWORD wstatus; in proc_open_rsrc_dtor() local
185 int wstatus; in proc_open_rsrc_dtor() local
203 GetExitCodeProcess(proc->childHandle, &wstatus); in proc_open_rsrc_dtor()
204 if (wstatus == STILL_ACTIVE) { in proc_open_rsrc_dtor()
207 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
217 wait_pid = waitpid(proc->child, &wstatus, waitpid_options); in proc_open_rsrc_dtor()
223 if (WIFEXITED(wstatus)) in proc_open_rsrc_dtor()
224 wstatus = WEXITSTATUS(wstatus); in proc_open_rsrc_dtor()
225 FG(pclose_ret) = wstatus; in proc_open_rsrc_dtor()
308 DWORD wstatus; in PHP_FUNCTION() local
310 int wstatus; in PHP_FUNCTION() local
331 GetExitCodeProcess(proc->childHandle, &wstatus); in PHP_FUNCTION()
333 running = wstatus == STILL_ACTIVE; in PHP_FUNCTION()
334 exitcode = running ? -1 : wstatus; in PHP_FUNCTION()
339 wait_pid = waitpid(proc->child, &wstatus, WNOHANG|WUNTRACED); in PHP_FUNCTION()
342 if (WIFEXITED(wstatus)) { in PHP_FUNCTION()
344 exitcode = WEXITSTATUS(wstatus); in PHP_FUNCTION()
346 if (WIFSIGNALED(wstatus)) { in PHP_FUNCTION()
350 termsig = WIFTERMSIG(wstatus); in PHP_FUNCTION()
352 termsig = WTERMSIG(wstatus); in PHP_FUNCTION()
355 if (WIFSTOPPED(wstatus)) { in PHP_FUNCTION()
357 stopsig = WSTOPSIG(wstatus); in PHP_FUNCTION()