/systemd-251/src/basic/ |
D | signal-util.c | 158 const char *signal_to_string(int signo) { in signal_to_string() argument 162 name = static_signal_to_string(signo); in signal_to_string() 166 if (signo >= SIGRTMIN && signo <= SIGRTMAX) in signal_to_string() 167 xsprintf(buf, "RTMIN+%d", signo - SIGRTMIN); in signal_to_string() 169 xsprintf(buf, "%d", signo); in signal_to_string() 176 int signo, r; in signal_from_string() local 179 if (safe_atoi(s, &signo) >= 0) { in signal_from_string() 180 if (SIGNAL_VALID(signo)) in signal_from_string() 181 return signo; in signal_from_string() 191 signo = static_signal_from_string(s); in signal_from_string() [all …]
|
D | signal-util.h | 53 static inline bool SIGNAL_VALID(int signo) { in SIGNAL_VALID() argument 54 return signo > 0 && signo < _NSIG; in SIGNAL_VALID()
|
/systemd-251/src/login/ |
D | logind-user-dbus.c | 227 int32_t signo; in bus_user_method_kill() local 247 r = sd_bus_message_read(message, "i", &signo); in bus_user_method_kill() 251 if (!SIGNAL_VALID(signo)) in bus_user_method_kill() 252 … return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid signal %i", signo); in bus_user_method_kill() 254 r = user_kill(u, signo); in bus_user_method_kill()
|
D | logind-session-dbus.c | 302 int32_t signo; in bus_session_method_kill() local 309 r = sd_bus_message_read(message, "si", &swho, &signo); in bus_session_method_kill() 321 if (!SIGNAL_VALID(signo)) in bus_session_method_kill() 322 … return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid signal %i", signo); in bus_session_method_kill() 338 r = session_kill(s, who, signo); in bus_session_method_kill()
|
D | logind-user.h | 67 int user_kill(User *u, int signo);
|
D | logind-dbus.h | 31 int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo, sd_bus_error *err…
|
D | logind-session.h | 147 int session_kill(Session *s, KillWho who, int signo);
|
D | logind-user.c | 750 int user_kill(User *u, int signo) { in user_kill() argument 753 return manager_kill_unit(u->manager, u->slice, KILL_ALL, signo, NULL); in user_kill()
|
D | logind-session.c | 1180 int session_kill(Session *s, KillWho who, int signo) { in session_kill() argument 1186 return manager_kill_unit(s->manager, s->scope, who, signo, NULL); in session_kill()
|
D | logind-dbus.c | 4125 int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo, sd_bus_error *err… in manager_kill_unit() argument 4135 "ssi", unit, who == KILL_LEADER ? "main" : "all", signo); in manager_kill_unit()
|
/systemd-251/src/core/ |
D | slice.c | 250 static int slice_kill(Unit *u, KillWho who, int signo, sd_bus_error *error) { in slice_kill() argument 251 return unit_kill_common(u, who, signo, -1, -1, error); in slice_kill()
|
D | unit.c | 3793 int unit_kill(Unit *u, KillWho w, int signo, sd_bus_error *error) { in unit_kill() argument 3796 assert(SIGNAL_VALID(signo)); in unit_kill() 3801 return UNIT_VTABLE(u)->kill(u, w, signo, error); in unit_kill() 3835 static int kill_common_log(pid_t pid, int signo, void *userdata) { in kill_common_log() argument 3843 signal_to_string(signo), pid, strna(comm)); in kill_common_log() 3851 int signo, in unit_kill_common() argument 3882 if (kill(control_pid, signo) < 0) { in unit_kill_common() 3887 signal_to_string(signo), control_pid, strna(comm)); in unit_kill_common() 3891 signal_to_string(signo), control_pid, strna(comm)); in unit_kill_common() 3894 signal_to_string(signo), control_pid, strna(comm)); in unit_kill_common() [all …]
|
D | unit.h | 541 int (*kill)(Unit *u, KillWho w, int signo, sd_bus_error *error); 811 int unit_kill(Unit *u, KillWho w, int signo, sd_bus_error *error); 812 int unit_kill_common(Unit *u, KillWho who, int signo, pid_t main_pid, pid_t control_pid, sd_bus_err…
|
D | scope.c | 444 static int scope_kill(Unit *u, KillWho who, int signo, sd_bus_error *error) { in scope_kill() argument 445 return unit_kill_common(u, who, signo, -1, -1, error); in scope_kill()
|
D | dbus-unit.c | 525 int32_t signo; in bus_unit_method_kill() local 536 r = sd_bus_message_read(message, "si", &swho, &signo); in bus_unit_method_kill() 548 if (!SIGNAL_VALID(signo)) in bus_unit_method_kill() 564 r = unit_kill(u, who, signo, error); in bus_unit_method_kill()
|
D | swap.c | 1489 static int swap_kill(Unit *u, KillWho who, int signo, sd_bus_error *error) { in swap_kill() argument 1490 return unit_kill_common(u, who, signo, -1, SWAP(u)->control_pid, error); in swap_kill()
|
D | mount.c | 2101 static int mount_kill(Unit *u, KillWho who, int signo, sd_bus_error *error) { in mount_kill() argument 2106 return unit_kill_common(u, who, signo, -1, m->control_pid, error); in mount_kill()
|
D | socket.c | 3305 static int socket_kill(Unit *u, KillWho who, int signo, sd_bus_error *error) { in socket_kill() argument 3306 return unit_kill_common(u, who, signo, -1, SOCKET(u)->control_pid, error); in socket_kill()
|
D | service.c | 4469 static int service_kill(Unit *u, KillWho who, int signo, sd_bus_error *error) { in service_kill() argument 4474 return unit_kill_common(u, who, signo, s->main_pid, s->control_pid, error); in service_kill()
|
/systemd-251/src/machine/ |
D | machine-dbus.c | 140 int32_t signo; in bus_machine_method_kill() local 147 r = sd_bus_message_read(message, "si", &swho, &signo); in bus_machine_method_kill() 159 if (!SIGNAL_VALID(signo)) in bus_machine_method_kill() 160 … return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid signal %i", signo); in bus_machine_method_kill() 182 r = machine_kill(m, who, signo); in bus_machine_method_kill()
|
D | machined.h | 57 int manager_kill_unit(Manager *manager, const char *unit, int signo, sd_bus_error *error);
|
D | machine.c | 567 int machine_kill(Machine *m, KillWho who, int signo) { in machine_kill() argument 577 return RET_NERRNO(kill(m->leader, signo)); in machine_kill() 580 return manager_kill_unit(m->manager, m->unit, signo, NULL); in machine_kill()
|
D | machine.h | 78 int machine_kill(Machine *m, KillWho who, int signo);
|
D | machined-dbus.c | 1388 int manager_kill_unit(Manager *manager, const char *unit, int signo, sd_bus_error *error) { in manager_kill_unit() argument 1392 …bus_call_method(manager->bus, bus_systemd_mgr, "KillUnit", error, NULL, "ssi", unit, "all", signo); in manager_kill_unit()
|
/systemd-251/src/coredump/ |
D | coredump.c | 1127 int r, signo; in gather_pid_metadata_from_argv() local 1156 if (safe_atoi(argv[i], &signo) >= 0 && SIGNAL_VALID(signo)) in gather_pid_metadata_from_argv() 1158 signal_to_string(signo)); in gather_pid_metadata_from_argv()
|