Home
last modified time | relevance | path

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

/systemd-251/src/basic/
Dsignal-util.c158 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 …]
Dsignal-util.h53 static inline bool SIGNAL_VALID(int signo) { in SIGNAL_VALID() argument
54 return signo > 0 && signo < _NSIG; in SIGNAL_VALID()
/systemd-251/src/login/
Dlogind-user-dbus.c227 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()
Dlogind-session-dbus.c302 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()
Dlogind-user.h67 int user_kill(User *u, int signo);
Dlogind-dbus.h31 int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo, sd_bus_error *err…
Dlogind-session.h147 int session_kill(Session *s, KillWho who, int signo);
Dlogind-user.c750 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()
Dlogind-session.c1180 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()
Dlogind-dbus.c4125 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/
Dslice.c250 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()
Dunit.c3793 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 …]
Dunit.h541 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…
Dscope.c444 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()
Ddbus-unit.c525 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()
Dswap.c1489 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()
Dmount.c2101 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()
Dsocket.c3305 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()
Dservice.c4469 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/
Dmachine-dbus.c140 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()
Dmachined.h57 int manager_kill_unit(Manager *manager, const char *unit, int signo, sd_bus_error *error);
Dmachine.c567 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()
Dmachine.h78 int machine_kill(Machine *m, KillWho who, int signo);
Dmachined-dbus.c1388 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/
Dcoredump.c1127 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()