Lines Matching defs:pid
201 hook_add(struct hookproc *hp, pid_t pid)
207 hp->hp_pid = pid;
238 hook_find(pid_t pid)
248 if (hp->hp_pid == pid)
256 hook_check_one(pid_t pid, int status)
261 hp = hook_find(pid);
264 pjdlog_debug(1, "Unknown process pid=%u", pid);
270 pjdlog_debug(1, "Hook exited gracefully (pid=%u, cmd=[%s]).",
271 pid, hp->hp_comm);
273 pjdlog_error("Hook was killed (pid=%u, signal=%d, cmd=[%s]).",
274 pid, WTERMSIG(status), hp->hp_comm);
276 pjdlog_error("Hook exited ungracefully (pid=%u, exitcode=%d, cmd=[%s]).",
277 pid, WIFEXITED(status) ? WEXITSTATUS(status) : -1,
307 pjdlog_warning("Hook disappeared (pid=%u, cmd=[%s]).",
323 pjdlog_warning("Hook is running for %ju seconds (pid=%u, cmd=[%s]).",
348 pid_t pid;
370 pid = fork();
371 switch (pid) {
389 hook_add(hp, pid);