Lines Matching defs:pid
164 static int pid; /* process id of child */
211 if ((pid = FORK_OR_VFORK()) < 0) {
214 } else if (pid > 0) {
268 if (kill(pid, sig) < 0) {
270 if (kill(pid, SIGTERM) < 0)
273 pid, sig, pid);
277 pid, sig, pid);
280 "kill(%d, %d) failed", pid,
452 printf("child: pid=%d waiting for parent's ready...\n", getpid());
600 printf("read_pipe: pid=%d waiting...\n", getpid());
622 printf("read_pipe: pid=%d received: %s.\n", getpid(), buf);
636 printf("write_pipe: pid=%d, sending %s.\n", getpid(), msg);
686 printf("timeout: pid=%d sigalrm caught.\n", getpid());
706 if (pid > 0 && kill(pid, SIGKILL) < 0)
707 tst_resm(TWARN, "kill(%d, SIGKILL) failed", pid);