Lines Matching refs:pid
131 pid_t other = 0, pid = 0; in common_test_pidfile_child() local
149 pid = fork(); in common_test_pidfile_child()
150 if (pid == -1) in common_test_pidfile_child()
152 if (pid == 0) { in common_test_pidfile_child()
197 kill(pid, SIGTERM); in common_test_pidfile_child()
217 if (other != pid) { in common_test_pidfile_child()
226 if (kill(pid, SIGINT) != 0) in common_test_pidfile_child()
228 if (waitpid(pid, &status, 0) == -1) in common_test_pidfile_child()
272 char path[PATH_MAX], pid[32], tmpdir[PATH_MAX]; in test_pidfile_relative() local
289 if (read(fd, pid, sizeof(pid)) < 0) in test_pidfile_relative()
291 if (atoi(pid) != getpid()) in test_pidfile_relative()