/systemd/src/nspawn/ |
H A D | nspawn-stub-pid1.c | 87 siginfo_t si; local 90 si.si_pid = 0; 91 r = waitid(P_ALL, 0, &si, WEXITED|WNOHANG); 99 if (si.si_pid == pid || current_usec >= quit_usec) { 111 if (si.si_pid == pid && si.si_code == CLD_EXITED) 112 r = si.si_status; /* pass on exit code */ 118 if (si.si_pid != 0) 123 r = sigwaitinfo(&waitmask, &si); 126 r = sigtimedwait(&waitmask, &si, timespec_stor [all...] |
/systemd/src/remount-fs/ |
H A D | remount-fs.c | 126 siginfo_t si = {}; local 129 if (waitid(P_ALL, 0, &si, WEXITED) < 0) { 138 s = hashmap_remove(pids, PID_TO_PTR(si.si_pid)); 140 if (!is_clean_exit(si.si_code, si.si_status, NULL)) { 141 if (si.si_code == CLD_EXITED) 142 log_error(MOUNT_PATH " for %s exited with exit status %i.", s, si.si_status); 144 log_error(MOUNT_PATH " for %s terminated by signal %s.", s, signal_to_string(si.si_status));
|
/systemd/src/test/ |
H A D | test-namespace.c | 70 siginfo_t si; local 104 r = wait_for_terminate(pid1, &si); 106 assert_se(si.si_code == CLD_EXITED); 107 n += si.si_status; 109 r = wait_for_terminate(pid2, &si); 111 assert_se(si.si_code == CLD_EXITED); 112 n += si.si_status; 114 r = wait_for_terminate(pid3, &si); 116 assert_se(si.si_code == CLD_EXITED); 117 n += si [all...] |
/systemd/src/basic/ |
H A D | sigbus.c | 101 static void sigbus_handler(int sn, siginfo_t *si, void *data) { argument 106 assert(si); 108 if (si->si_code != BUS_ADRERR || !si->si_addr) { 114 ul = (unsigned long) si->si_addr;
|
H A D | terminal-util.c | 1039 siginfo_t si; local 1080 r = wait_for_terminate(child, &si); 1083 if (si.si_code != CLD_EXITED || si.si_status != EXIT_SUCCESS) 1092 siginfo_t si; local 1128 r = wait_for_terminate(child, &si); 1131 if (si.si_code != CLD_EXITED || si.si_status != EXIT_SUCCESS)
|
H A D | parse-util.c | 138 static const struct table si[] = { local 159 table = si; 160 n_entries = ELEMENTSOF(si);
|
H A D | log.c | 1096 void log_received_signal(int level, const struct signalfd_siginfo *si) { argument 1097 if (si->ssi_pid > 0) { 1100 get_process_comm(si->ssi_pid, &p); 1104 signal_to_string(si->ssi_signo), 1105 si->ssi_pid, strna(p)); 1109 signal_to_string(si->ssi_signo));
|
H A D | log.h | 217 void log_received_signal(int level, const struct signalfd_siginfo *si);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-container.c | 34 siginfo_t si; local 101 r = wait_for_terminate(grandchild, &si); 105 if (si.si_code != CLD_EXITED) 108 _exit(si.si_status); 113 r = wait_for_terminate(child, &si); 135 if (si.si_code != CLD_EXITED) 138 if (si.si_status != EXIT_SUCCESS) 164 siginfo_t si; local 226 r = wait_for_terminate(grandchild, &si); 230 if (si [all...] |
/systemd/src/shared/ |
H A D | machine-pool.c | 79 siginfo_t si; local 146 r = wait_for_terminate(pid, &si); 154 if (si.si_code != CLD_EXITED) { 158 if (si.si_status == 99) { 162 if (si.si_status != 0) { 163 r = sd_bus_error_setf(error, SD_BUS_ERROR_FAILED, "mkfs.btrfs failed with error code %i", si.si_status);
|
H A D | logs-show.c | 1143 siginfo_t si; local 1196 r = wait_for_terminate(child, &si); 1197 if (r < 0 || si.si_code != CLD_EXITED || si.si_status != EXIT_SUCCESS)
|
H A D | ptyfwd.c | 312 static int on_sigwinch_event(sd_event_source *e, const struct signalfd_siginfo *si, void *userdata) { argument
|
/systemd/src/libsystemd/sd-event/ |
H A D | test-event.c | 65 static int child_handler(sd_event_source *s, const siginfo_t *si, void *userdata) { argument 68 assert_se(si); 80 static int signal_handler(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument 85 assert_se(si); 292 static int rtqueue_handler(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument 293 last_rtqueue_sigval = si->ssi_int;
|
H A D | sd-event.c | 1129 static int signal_exit_callback(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument 2188 struct signalfd_siginfo si; local 2192 n = read(d->fd, &si, sizeof(si)); 2200 if (_unlikely_(n != sizeof(si))) 2203 assert(si.ssi_signo < _NSIG); 2208 s = e->signal_sources[si.ssi_signo]; 2214 s->signal.siginfo = si;
|
/systemd/src/systemd/ |
H A D | sd-event.h | 71 typedef int (*sd_event_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata); 72 typedef int (*sd_event_child_handler_t)(sd_event_source *s, const siginfo_t *si, void *userdata);
|
/systemd/src/machine/ |
H A D | machine-dbus.c | 156 r = sd_bus_message_read(message, "si", &swho, &signo); 246 siginfo_t si; local 356 r = wait_for_terminate(child, &si); 359 if (si.si_code != CLD_EXITED || si.si_status != EXIT_SUCCESS) 398 siginfo_t si; local 447 r = wait_for_terminate(child, &si); 450 if (si.si_code != CLD_EXITED || si.si_status != EXIT_SUCCESS) 874 siginfo_t si; local 1086 machine_operation_done(sd_event_source *s, const siginfo_t *si, void *userdata) argument [all...] |
/systemd/src/core/ |
H A D | manager.c | 1626 static void invoke_sigchld_event(Manager *m, Unit *u, const siginfo_t *si) { argument 1629 assert(si); 1631 log_unit_debug(u, "Child "PID_FMT" belongs to %s", si->si_pid, u->id); 1633 unit_unwatch_pid(u, si->si_pid); 1634 UNIT_VTABLE(u)->sigchld_event(u, si->si_pid, si->si_code, si->si_status); 1641 siginfo_t si = {}; local 1646 if (waitid(P_ALL, 0, &si, WEXITED|WNOHANG|WNOWAIT) < 0) { 1657 if (si [all...] |
/systemd/src/udev/ |
H A D | udev-event.c | 598 static int on_spawn_sigchld(sd_event_source *s, const siginfo_t *si, void *userdata) { argument 603 switch (si->si_code) { 605 if (si->si_status == 0) { 611 log_debug("Process '%s' failed with exit code %i.", spawn->cmd, si->si_status); 613 log_warning("Process '%s' failed with exit code %i.", spawn->cmd, si->si_status); 618 log_warning("Process '%s' terminated by signal %s.", spawn->cmd, signal_to_string(si->si_status));
|
H A D | udevd.c | 1163 static int on_sigterm(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument 1173 static int on_sighup(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument 1183 static int on_sigchld(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument
|
/systemd/src/import/ |
H A D | importd.c | 310 static int transfer_on_pid(sd_event_source *s, const siginfo_t *si, void *userdata) { argument 317 if (si->si_code == CLD_EXITED) { 318 if (si->si_status != 0) 319 log_error("Import process failed with exit code %i.", si->si_status); 325 } else if (si->si_code == CLD_KILLED || 326 si->si_code == CLD_DUMPED) 328 log_error("Import process terminated by signal %s.", signal_to_string(si->si_status));
|
H A D | export.c | 58 static int interrupt_signal_handler(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument
|
H A D | import.c | 40 static int interrupt_signal_handler(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument
|
H A D | pull.c | 41 static int interrupt_signal_handler(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { argument
|
/systemd/src/journal/ |
H A D | journald-server.c | 1274 static int dispatch_sigusr1(sd_event_source *es, const struct signalfd_siginfo *si, void *userdata) { argument 1280 log_info("Received request to flush runtime journal from PID " PID_FMT, si->ssi_pid); 1293 static int dispatch_sigusr2(sd_event_source *es, const struct signalfd_siginfo *si, void *userdata) { argument 1299 log_info("Received request to rotate journal from PID " PID_FMT, si->ssi_pid); 1311 static int dispatch_sigterm(sd_event_source *es, const struct signalfd_siginfo *si, void *userdata) { argument 1316 log_received_signal(LOG_INFO, si); 1322 static int dispatch_sigrtmin1(sd_event_source *es, const struct signalfd_siginfo *si, void *userdata) { argument 1328 log_debug("Received request to sync from PID " PID_FMT, si->ssi_pid);
|
/systemd/src/journal-remote/ |
H A D | journal-upload.c | 392 const struct signalfd_siginfo *si, 398 log_received_signal(LOG_INFO, si); 391 dispatch_sigterm(sd_event_source *event, const struct signalfd_siginfo *si, void *userdata) argument
|