Home | History | Annotate | Download | only in base

Lines Matching refs:process_id

224 bool KillProcess(ProcessHandle process_id, int exit_code, bool wait) {
225 DCHECK_GT(process_id, 1) << " tried to kill invalid process_id";
226 if (process_id <= 1)
231 bool result = kill(process_id, SIGTERM) == 0;
238 pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG));
239 if (pid == process_id) {
250 DPLOG(ERROR) << "Error waiting for process " << process_id;
261 result = kill(process_id, SIGKILL) == 0;
265 DPLOG(ERROR) << "Unable to terminate process " << process_id;