Lines Matching defs:pid
18 First program to run (as PID 1) when the system comes up, reading
27 pid_t pid;
228 pid_t pid;
234 if (x->action & ASKFIRST) pid = fork();
235 else pid = vfork();
237 if (pid > 0) {
243 return pid;
244 } else if (pid < 0) {
272 static struct action_list_seed* mark_as_terminated_process(pid_t pid)
276 if (pid > 0) {
278 if (x->pid == pid) {
279 x->pid = 0;
288 static void waitforpid(pid_t pid)
290 if (pid <= 0) return;
301 pid_t pid;
307 pid = final_run(x);
308 if (!pid) return;
309 if (x->action & (SHUTDOWN|SYSINIT|CTRLALTDEL|WAIT)) waitforpid(pid);
312 if (!(x->pid)) x->pid = final_run(x);
337 pid_t pid;
359 pid = vfork();
361 if (pid == 0) {
372 pid_t pid;
387 pid = vfork();
389 if (pid == 0) {
414 pid_t pid;
422 do pid = waitpid(-1,NULL,WNOHANG); while((pid==-1) && (errno=EINTR));
423 mark_as_terminated_process(pid);
491 pid_t pid = waitpid(-1, NULL, suspected_WNOHANG);
493 if (pid <= 0) break;
494 mark_as_terminated_process(pid);