Lines Matching defs:pid
199 hook_add(struct hookproc *hp, pid_t pid)
205 hp->hp_pid = pid;
236 hook_find(pid_t pid)
246 if (hp->hp_pid == pid)
254 hook_check_one(pid_t pid, int status)
259 hp = hook_find(pid);
262 pjdlog_debug(1, "Unknown process pid=%u", pid);
268 pjdlog_debug(1, "Hook exited gracefully (pid=%u, cmd=[%s]).",
269 pid, hp->hp_comm);
271 pjdlog_error("Hook was killed (pid=%u, signal=%d, cmd=[%s]).",
272 pid, WTERMSIG(status), hp->hp_comm);
274 pjdlog_error("Hook exited ungracefully (pid=%u, exitcode=%d, cmd=[%s]).",
275 pid, WIFEXITED(status) ? WEXITSTATUS(status) : -1,
305 pjdlog_warning("Hook disappeared (pid=%u, cmd=[%s]).",
321 pjdlog_warning("Hook is running for %ju seconds (pid=%u, cmd=[%s]).",
346 pid_t pid;
368 pid = fork();
369 switch (pid) {
387 hook_add(hp, pid);