Lines Matching refs:pid
110 auto pid = pid_; // Wait will set pid_ to -1 after waiting in Wait() local
121 LOG(ERROR) << "Subprocess " << pid in Wait()
125 LOG(ERROR) << "Subprocess " << pid in Wait()
145 auto pid = subprocess->pid(); in KillSubprocess() local
146 if (pid > 0) { in KillSubprocess()
147 auto pgid = getpgid(pid); in KillSubprocess()
151 << pid << ": " << strerror(error); in KillSubprocess()
155 bool is_group_head = pid == pgid; in KillSubprocess()
157 return killpg(pid, SIGKILL) == 0; in KillSubprocess()
159 return kill(pid, SIGKILL) == 0; in KillSubprocess()
245 pid_t pid = fork(); in Start() local
246 if (!pid) { in Start()
281 if (pid == -1) { in Start()
285 LOG(DEBUG) << "Started (pid: " << pid << "): " << cmd[0]; in Start()
290 LOG(VERBOSE) << "Started (pid: " << pid << "): " << cmd[0]; in Start()
295 return Subprocess(pid, parent_socket, subprocess_stopper_); in Start()