Lines Matching defs:pid
136 child_exit_log(const char *type, unsigned int pid, int status)
140 pjdlog_debug(1, "%s process exited gracefully (pid=%u).",
141 type, pid);
143 pjdlog_error("%s process killed (pid=%u, signal=%d).",
144 type, pid, WTERMSIG(status));
146 pjdlog_error("%s process exited ungracefully (pid=%u, exitcode=%d).",
147 type, pid, WIFEXITED(status) ? WEXITSTATUS(status) : -1);
157 pid_t pid;
160 while ((pid = wait3(&status, WNOHANG, NULL)) > 0) {
163 if (pid == adhost->adh_worker_pid)
167 child_exit_log("Sandbox", pid, status);
173 child_exit_log("Worker", pid, status);
212 pjdlog_info("Terminating worker process (adhost=%s, role=%s, pid=%u).",
218 "Unable to send signal to worker process (adhost=%s, role=%s, pid=%u).",
234 pid_t pid;
383 "Receiver process exists (pid=%u), stopping it.",
388 "Unable to stop worker process (pid=%u)",
396 else if ((pid = waitpid(adhost->adh_worker_pid,
400 "Waiting for worker process (pid=%u) failed",
609 pjdlog_debug(2, " pid: %ld", (long)adhost->adh_worker_pid);
731 "Another auditdistd is already running, pid: %jd.",