Lines Matching refs:pid
128 int pid = fork();
129 if (!pid) {
133 } else if (pid != -1)
134 waitpid(pid, NULL, 0);
266 int pid;
298 pid = fork();
299 if(pid == -1)
302 if(pid == 0) {
309 waitpid(pid, NULL, 0);
314 int fds[2], pid;
328 pid = fork();
329 if(pid == -1) {
336 if(pid == 0) {
374 int fds[2], pid;
389 pid = fork();
390 if(pid == -1) {
397 if(pid == 0) {
435 waitpid(pid, NULL, 0); /* bury zombie */