Searched refs:waitpid_ret (Results 1 – 1 of 1) sorted by relevance
112 int waitpid_ret = 0; in RunShellCommand() local114 auto NeedToWaitForChild = [child_pid, &wait_status, &waitpid_ret]() { in RunShellCommand()115 if (waitpid_ret == 0) { in RunShellCommand()116 waitpid_ret = waitpid(child_pid, &wait_status, WNOHANG); in RunShellCommand()117 if (waitpid_ret == -1) { in RunShellCommand()121 return waitpid_ret == 0; in RunShellCommand()130 if (waitpid_ret != child_pid) { in RunShellCommand()145 if (waitpid_ret == child_pid && WIFEXITED(wait_status)) { in RunShellCommand()