Lines Matching defs:pid
76 int pid, npid;
98 pid = FORK_OR_VFORK();
99 if (pid < 0) {
103 if (pid == 0) {
111 kill(pid, sig); /* child should ignroe this sig */
112 kill(pid, SIGCHLD); /* child should exit */
115 while ((npid = wait(&status)) != pid
117 if (npid != pid) {
119 "wait error: wait returned wrong pid\n");
123 while ((npid = waitpid(pid, &status, 0)) != -1