Home
last modified time | relevance | path

Searched refs:si (Results 1 – 25 of 53) sorted by relevance

123

/systemd-251/src/nspawn/
Dnspawn-stub-pid1.c108 siginfo_t si; in stub_pid1() local
111 si.si_pid = 0; in stub_pid1()
112 r = waitid(P_ALL, 0, &si, WEXITED|WNOHANG); in stub_pid1()
120 if (si.si_pid == pid || current_usec >= quit_usec) { in stub_pid1()
132 if (si.si_pid == pid && si.si_code == CLD_EXITED) in stub_pid1()
133 r = si.si_status; /* pass on exit code */ in stub_pid1()
139 if (si.si_pid != 0) in stub_pid1()
144 r = sigwaitinfo(&waitmask, &si); in stub_pid1()
146 r = sigtimedwait(&waitmask, &si, TIMESPEC_STORE(quit_usec - current_usec)); in stub_pid1()
157 if (si.si_signo == SIGCHLD) in stub_pid1()
[all …]
/systemd-251/src/remount-fs/
Dremount-fs.c126 siginfo_t si = {}; in run() local
128 if (waitid(P_ALL, 0, &si, WEXITED) < 0) { in run()
135 s = hashmap_remove(pids, PID_TO_PTR(si.si_pid)); in run()
137 !is_clean_exit(si.si_code, si.si_status, EXIT_CLEAN_COMMAND, NULL)) { in run()
138 if (si.si_code == CLD_EXITED) in run()
139 … log_error(MOUNT_PATH " for %s exited with exit status %i.", s, si.si_status); in run()
141 … log_error(MOUNT_PATH " for %s terminated by signal %s.", s, signal_to_string(si.si_status)); in run()
/systemd-251/src/test/
Dtest-namespace.c90 siginfo_t si; in test_shareable_ns() local
126 r = wait_for_terminate(pid1, &si); in test_shareable_ns()
128 assert_se(si.si_code == CLD_EXITED); in test_shareable_ns()
129 n += si.si_status; in test_shareable_ns()
131 r = wait_for_terminate(pid2, &si); in test_shareable_ns()
133 assert_se(si.si_code == CLD_EXITED); in test_shareable_ns()
134 n += si.si_status; in test_shareable_ns()
136 r = wait_for_terminate(pid3, &si); in test_shareable_ns()
138 assert_se(si.si_code == CLD_EXITED); in test_shareable_ns()
139 n += si.si_status; in test_shareable_ns()
Dtest-process-util.c270 siginfo_t si; in TEST() local
272 (void) wait_for_terminate(pid, &si); in TEST()
274 assert_se(si.si_code == CLD_EXITED); in TEST()
275 assert_se(si.si_status == 0); in TEST()
574 siginfo_t si; in test_rename_process_one() local
588 assert_se(wait_for_terminate(pid, &si) >= 0); in test_rename_process_one()
589 assert_se(si.si_code == CLD_EXITED); in test_rename_process_one()
590 assert_se(si.si_status == EXIT_SUCCESS); in test_rename_process_one()
600 siginfo_t si; in TEST() local
602 assert_se(wait_for_terminate(pid, &si) >= 0); in TEST()
[all …]
/systemd-251/src/portable/
Dportabled-operation.c10 static int operation_done(sd_event_source *s, const siginfo_t *si, void *userdata) { in operation_done() argument
16 assert(si); in operation_done()
20 sigchld_code_to_string(si->si_code), si->si_status); in operation_done()
24 if (si->si_code != CLD_EXITED) { in operation_done()
29 if (si->si_status == EXIT_SUCCESS) in operation_done()
/systemd-251/test/
Dsd-script.py294 si = sys.exc_info()[1]
295 if (si.errno == errno.EEXIST):
298 print("error for %s%d: %s" % (sd.namestr(), prt, si[1]))
310 si = sys.exc_info()[1]
311 if (si.errno == errno.EEXIST):
313 elif (si.errno == errno.ENOENT):
315 (sd.namestr(), si.strerror))
318 print("error for %s: %s" % (sd.namestr(), si.strerror))
/systemd-251/src/machine/
Doperation.c11 static int operation_done(sd_event_source *s, const siginfo_t *si, void *userdata) { in operation_done() argument
17 assert(si); in operation_done()
21 sigchld_code_to_string(si->si_code), si->si_status); in operation_done()
25 if (si->si_code != CLD_EXITED) { in operation_done()
30 if (si->si_status == EXIT_SUCCESS) in operation_done()
/systemd-251/src/basic/
Dsigbus.c82 static void sigbus_handler(int sn, siginfo_t *si, void *data) { in sigbus_handler() argument
87 assert(si); in sigbus_handler()
89 if (si->si_code != BUS_ADRERR || !si->si_addr) { in sigbus_handler()
95 ul = (unsigned long) si->si_addr; in sigbus_handler()
Dlog.c1339 void log_received_signal(int level, const struct signalfd_siginfo *si) { in log_received_signal() argument
1340 assert(si); in log_received_signal()
1342 if (pid_is_valid(si->ssi_pid)) { in log_received_signal()
1345 (void) get_process_comm(si->ssi_pid, &p); in log_received_signal()
1349 signal_to_string(si->ssi_signo), in log_received_signal()
1350 si->ssi_pid, strna(p)); in log_received_signal()
1354 signal_to_string(si->ssi_signo)); in log_received_signal()
Dparse-util.c163 static const struct table si[] = { in parse_size() local
184 table = si; in parse_size()
185 n_entries = ELEMENTSOF(si); in parse_size()
/systemd-251/src/libsystemd/sd-event/
Dtest-event.c63 static int child_handler(sd_event_source *s, const siginfo_t *si, void *userdata) { in child_handler() argument
66 assert_se(si); in child_handler()
68 assert_se(si->si_uid == getuid()); in child_handler()
69 assert_se(si->si_signo == SIGCHLD); in child_handler()
70 assert_se(si->si_code == CLD_EXITED); in child_handler()
71 assert_se(si->si_status == 78); in child_handler()
83 static int signal_handler(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { in signal_handler() argument
89 assert_se(si); in signal_handler()
337 static int rtqueue_handler(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { in rtqueue_handler() argument
338 last_rtqueue_sigval = si->ssi_int; in rtqueue_handler()
[all …]
/systemd-251/src/udev/
Dudevadm-lock.c274 siginfo_t si; in lock_device() local
295 zero(si); in lock_device()
297 if (waitid(P_PID, flock_pid, &si, WEXITED|WNOHANG|WNOWAIT) < 0) in lock_device()
300 if (si.si_pid != 0) { in lock_device()
301 assert(si.si_pid == flock_pid); in lock_device()
303 … if (si.si_code != CLD_EXITED || si.si_status != EXIT_SUCCESS) in lock_device()
Dudevd.c261 static int on_sigchld(sd_event_source *s, const siginfo_t *si, void *userdata);
1535 static int on_sigterm(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { in on_sigterm() argument
1545 static int on_sighup(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { in on_sighup() argument
1555 static int on_sigchld(sd_event_source *s, const siginfo_t *si, void *userdata) { in on_sigchld() argument
1562 assert(si); in on_sigchld()
1564 switch (si->si_code) { in on_sigchld()
1566 if (si->si_status == 0) in on_sigchld()
1567 log_device_debug(dev, "Worker ["PID_FMT"] exited.", si->si_pid); in on_sigchld()
1570 si->si_pid, si->si_status); in on_sigchld()
1571 result = EVENT_RESULT_EXIT_STATUS_BASE + si->si_status; in on_sigchld()
[all …]
Dudev-event.c667 static int on_spawn_sigchld(sd_event_source *s, const siginfo_t *si, void *userdata) { in on_spawn_sigchld() argument
673 switch (si->si_code) { in on_spawn_sigchld()
675 if (si->si_status == 0) in on_spawn_sigchld()
679 … "Process '%s' failed with exit code %i.", spawn->cmd, si->si_status); in on_spawn_sigchld()
680 ret = si->si_status; in on_spawn_sigchld()
684 …awn->device, "Process '%s' terminated by signal %s.", spawn->cmd, signal_to_string(si->si_status)); in on_spawn_sigchld()
/systemd-251/src/login/
Dlogind-brightness.c98 static int on_brightness_writer_exit(sd_event_source *s, const siginfo_t *si, void *userdata) { in on_brightness_writer_exit() argument
103 assert(si); in on_brightness_writer_exit()
106 assert(si->si_pid == w->child); in on_brightness_writer_exit()
111 si->si_code == CLD_EXITED && in on_brightness_writer_exit()
112 si->si_status == EXIT_SUCCESS ? 0 : -EPROTO); in on_brightness_writer_exit()
/systemd-251/src/activate/
Dactivate.c261 siginfo_t si; in sigchld_hdl() local
264 si.si_pid = 0; in sigchld_hdl()
265 r = waitid(P_ALL, 0, &si, WEXITED | WNOHANG); in sigchld_hdl()
271 if (si.si_pid == 0) in sigchld_hdl()
274 log_info("Child %d died with code %d", si.si_pid, si.si_status); in sigchld_hdl()
/systemd-251/src/shared/
Dtests.c158 siginfo_t si = {}; in have_namespaces() local
175 assert_se(waitid(P_PID, pid, &si, WEXITED) >= 0); in have_namespaces()
176 assert_se(si.si_code == CLD_EXITED); in have_namespaces()
178 if (si.si_status == EXIT_SUCCESS) in have_namespaces()
181 if (si.si_status == EXIT_FAILURE) in have_namespaces()
/systemd-251/catalog/
Dsystemd.pl.catalog.in219 Subject: Zadanie uruchamiania dla jednostki @UNIT@ się nie powiodło
268 Proces @EXECUTABLE@ nie mógł zostać wykonany i się nie powiódł.
289 się niedostępne. Aby zobaczyć te pliki, proszę ręcznie zamontować system
324 albo że atakującemu udało się upozorować atak tego typu.
327 Subject: Walidacja DNSSEC się nie powiodła
361 Subject: Jednostka się powiodła
377 Subject: Jednostka się nie powiodła
427 Subject: Przyjmowanie nazwy użytkownika/grupy @USER_GROUP_NAME@, która nie zgadza się ze ścisłymi r…
444 zawierających tylko cyfry lub ciągów zaczynających się myślnikiem
448 Subject: Utworzenie prawidłowej nazwy jednostki ze ścieżki „@MOUNT_POINT@” się nie powiodło.
[all …]
Dsystemd.hu.catalog.in60 Ez általában programozási hibát jelez az összeomló programban, és
129 Subject: A rendszer „@SLEEP@” alvási állapotba lépett
133 A rendszer belépett ebbe az alvási állapotba: @SLEEP@.
136 Subject: A rendszer „@SLEEP@” alvási állapotból kilépett
140 A rendszer kilépett ebből az alvási állapotból: @SLEEP@.
225 Subject: A csatolási pont nem üres
229 A csatolási pontként megadott @WHERE@ könyvtár (második mező az /etc/fstab
/systemd-251/src/systemd/
Dsd-event.h74 typedef int (*sd_event_signal_handler_t)(sd_event_source *s, const struct signalfd_siginfo *si, voi…
76 typedef int (*sd_event_child_handler_t)(sd_event_source *s, const siginfo_t *si, void *userdata);
155 int sd_event_source_send_child_signal(sd_event_source *s, int sig, const siginfo_t *si, unsigned fl…
157 int sd_event_source_send_child_signal(sd_event_source *s, int sig, const void *si, unsigned flags);
/systemd-251/src/core/
Dmanager.c2592 const siginfo_t *si) { in manager_invoke_sigchld_event() argument
2596 assert(si); in manager_invoke_sigchld_event()
2603 log_unit_debug(u, "Child "PID_FMT" belongs to %s.", si->si_pid, u->id); in manager_invoke_sigchld_event()
2604 unit_unwatch_pid(u, si->si_pid); in manager_invoke_sigchld_event()
2607 UNIT_VTABLE(u)->sigchld_event(u, si->si_pid, si->si_code, si->si_status); in manager_invoke_sigchld_event()
2612 siginfo_t si = {}; in manager_dispatch_sigchld() local
2621 if (waitid(P_ALL, 0, &si, WEXITED|WNOHANG|WNOWAIT) < 0) { in manager_dispatch_sigchld()
2629 if (si.si_pid <= 0) in manager_dispatch_sigchld()
2632 if (IN_SET(si.si_code, CLD_EXITED, CLD_KILLED, CLD_DUMPED)) { in manager_dispatch_sigchld()
2637 (void) get_process_comm(si.si_pid, &name); in manager_dispatch_sigchld()
[all …]
/systemd-251/test/fuzz/fuzz-catalog/
Dsystemd.pl.catalog209 Subject: Zadanie uruchamiania dla jednostki @UNIT@ się nie powiodło
258 Proces @EXECUTABLE@ nie mógł zostać wykonany i się nie powiódł.
279 się niedostępne. Aby zobaczyć te pliki, proszę ręcznie zamontować system
313 albo że atakującemu udało się upozorować atak tego typu.
316 Subject: Walidacja DNSSEC się nie powiodła
350 Subject: Jednostka się powiodła
357 Subject: Jednostka się nie powiodła
/systemd-251/src/import/
Dimportd.c308 static int transfer_on_pid(sd_event_source *s, const siginfo_t *si, void *userdata) { in transfer_on_pid() argument
315 if (si->si_code == CLD_EXITED) { in transfer_on_pid()
316 if (si->si_status != 0) in transfer_on_pid()
317 log_error("Transfer process failed with exit code %i.", si->si_status); in transfer_on_pid()
323 } else if (IN_SET(si->si_code, CLD_KILLED, CLD_DUMPED)) in transfer_on_pid()
324 … log_error("Transfer process terminated by signal %s.", signal_to_string(si->si_status)); in transfer_on_pid()
/systemd-251/src/userdb/
Duserdbd-manager.c22 static int on_sigchld(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { in on_sigchld() argument
69 static int on_sigusr2(sd_event_source *s, const struct signalfd_siginfo *si, void *userdata) { in on_sigusr2() argument
/systemd-251/po/
DLINGUAS28 si

123