Home
last modified time | relevance | path

Searched refs:siginfo (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/userdb/
Duserdbd-manager.c29 siginfo_t siginfo = {}; in on_sigchld() local
32 if (waitid(P_ALL, 0, &siginfo, WNOHANG|WEXITED) < 0) { in on_sigchld()
39 if (siginfo.si_pid == 0) in on_sigchld()
42 if (set_remove(m->workers_dynamic, PID_TO_PTR(siginfo.si_pid))) in on_sigchld()
44 if (set_remove(m->workers_fixed, PID_TO_PTR(siginfo.si_pid))) in on_sigchld()
48 … log_warning("Weird, got SIGCHLD for unknown child " PID_FMT ", ignoring.", siginfo.si_pid); in on_sigchld()
52 if (siginfo.si_code == CLD_EXITED) { in on_sigchld()
53 if (siginfo.si_status == EXIT_SUCCESS) in on_sigchld()
54 … log_debug("Worker " PID_FMT " exited successfully.", siginfo.si_pid); in on_sigchld()
56 …rker " PID_FMT " died with a failure exit status %i, ignoring.", siginfo.si_pid, siginfo.si_status… in on_sigchld()
[all …]
/systemd-251/src/core/
Dcrash-handler.c40 _noreturn_ static void crash(int sig, siginfo_t *siginfo, void *context) { in crash() argument
91 if (siginfo) { in crash()
92 if (siginfo->si_pid == 0) in crash()
94 else if (siginfo->si_pid == 1) in crash()
97 … log_emergency("Caught <%s> from PID "PID_FMT".", signal_to_string(sig), siginfo->si_pid); in crash()
/systemd-251/src/libsystemd/sd-event/
Devent-source.h100 struct signalfd_siginfo siginfo; member
105 siginfo_t siginfo; member
Dsd-event.c3260 zero(s->child.siginfo); in process_child()
3261 if (waitid(P_PID, s->child.pid, &s->child.siginfo, in process_child()
3265 if (s->child.siginfo.si_pid != 0) { in process_child()
3266 … bool zombie = IN_SET(s->child.siginfo.si_code, CLD_EXITED, CLD_KILLED, CLD_DUMPED); in process_child()
3277 …(void) waitid(P_PID, s->child.pid, &s->child.siginfo, WNOHANG|(s->child.options & (WSTOPPED|WCONTI… in process_child()
3308 zero(s->child.siginfo); in process_pidfd()
3309 … if (waitid(P_PID, s->child.pid, &s->child.siginfo, WNOHANG | WNOWAIT | s->child.options) < 0) in process_pidfd()
3312 if (s->child.siginfo.si_pid == 0) in process_pidfd()
3315 if (IN_SET(s->child.siginfo.si_code, CLD_EXITED, CLD_KILLED, CLD_DUMPED)) in process_pidfd()
3367 s->signal.siginfo = si; in process_signal()
[all …]