Home | History | Annotate | Download | only in process

Lines Matching full:wait

9 #include <sys/wait.h>
27 // This POSIX version of this function only guarantees that we wait no less
65 // Sleep for a bit while we wait for the process to finish.
135 bool KillProcess(ProcessHandle process_id, int exit_code, bool wait) {
140 if (result && wait) {
144 // Wait for some extra time when running under Valgrind since the child
161 // The wait may fail with ECHILD if another process also waited for
242 base::TimeDelta wait,
249 base::TimeTicks end_time = base::TimeTicks::Now() + wait;
263 // Using kqueue on Mac so that we can wait on non-child processes.
265 // our own children using wait.
267 base::TimeDelta wait) {
269 DCHECK(wait.InMilliseconds() == base::kNoTimeout || wait > base::TimeDelta());
293 bool wait_forever = wait.InMilliseconds() == base::kNoTimeout;
297 remaining_delta = wait;
327 DPLOG(ERROR) << "kevent (wait " << handle << ")";
330 DLOG(ERROR) << "kevent (wait " << handle << "): unexpected result "
343 DLOG(ERROR) << "kevent (wait " << handle
354 bool WaitForSingleProcess(ProcessHandle handle, base::TimeDelta wait) {
359 // On Mac we can wait on non child processes.
360 return WaitForSingleNonChildProcess(handle, wait);
369 if (wait.InMilliseconds() == base::kNoTimeout) {
373 handle, wait.InMilliseconds(), &waitpid_success);
385 base::TimeDelta wait,
388 bool exited_cleanly = WaitForProcessesToExit(executable_name, wait, filter);
429 // Wait forever case.
439 // There's no good way to wait for a specific child to exit in a timed
442 // Wait for 2 * timeout_ 500 milliseconds intervals.
451 // just wait for the process to die now in a blocking manner.
462 // Number of seconds to wait, if 0 then wait forever and do not attempt to