Lines Matching refs:pid
28 static void do_kill(int pid, int sig) in do_kill() argument
45 sprintf(pidbuf, "%d", pid); in do_kill()
71 int pid; in test() local
78 pid = fork(); in test()
79 if (pid == -1) { in test()
89 if (pid == 0) { in test()
103 do_kill(pid, caughtsig); // Should be caught. in test()
105 do_kill(pid, caughtsig); // Ditto. in test()
106 do_kill(pid, caughtsig); // Ditto. in test()
111 do_kill(pid, fatalsig); // Should kill it. in test()
114 if (waitpid(pid, &status, 0) != pid) { in test()