Home | History | Annotate | Download | only in process

Lines Matching full:process

5 #include "base/process/kill.h"
23 // Reap |child| process. This call blocks until completion.
35 // observe when the process exits. kevent can monitor a kqueue with a
37 // time. Once the kqueue indicates the process has exited, waitpid will reap
40 // process will be mercilessly killed and reaped.
42 // A child process passed to this function may be in one of several states:
44 // terminated and already reaped. Normally, a process will at least have been
46 // If a process is terminating and unreaped, there may be a window between the
49 // detected when kqueue indicates that the process is not running and a
50 // non-blocking waitpid fails to reap the process but indicates that it is
51 // still running. In this event, a blocking attempt to reap the process
64 // process in that case. The fact that this function can seemingly be called
65 // to wait on a process that's not even a child is also a problem: kqueue will
75 // to kill and reap the process. Not observing this rule will resurrect
93 // 1. The process has died but has not yet been reaped.
94 // 2. The process has died and has already been reaped.
95 // 3. The process is in the process of dying. It's no longer
109 // |result| is 0, indicating case 3. The process will be waitable in
139 // The process is dead or dying. This won't block for long, if at
155 // signal is not delivered to a live process.
168 void EnsureProcessTerminated(ProcessHandle process) {
169 WaitForChildToDie(process, kWaitBeforeKillSeconds);