diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-02-15 10:25:51 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-02-17 09:55:35 +0100 |
commit | a721cd0016fb662fc5888cef959eec19f96b4040 (patch) | |
tree | c78c36637dfa1f4f2c923ea1de57693110be5eb1 /src/core/unit.h | |
parent | d51e31ac4197d971a468ff41f15593bb6fdb29f3 (diff) | |
download | systemd-a721cd0016fb662fc5888cef959eec19f96b4040.tar.gz |
pid1: add a new D-Bus method for enquing POSIX signals with values to unit processes
This augments the existing KillUnit() + Kill() methods with
QueueSignalUnit() + QueueSignal(), which are what sigqueue() is to
kill().
This is useful for sending our new SIGRTMIN+18 control signals to system
services.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index 58417ebd0e..3f8377fbf6 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -619,7 +619,7 @@ typedef struct UnitVTable { int (*stop)(Unit *u); int (*reload)(Unit *u); - int (*kill)(Unit *u, KillWho w, int signo, sd_bus_error *error); + int (*kill)(Unit *u, KillWho w, int signo, int code, int value, sd_bus_error *error); /* Clear out the various runtime/state/cache/logs/configuration data */ int (*clean)(Unit *u, ExecCleanMask m); @@ -889,8 +889,8 @@ int unit_start(Unit *u, ActivationDetails *details); int unit_stop(Unit *u); int unit_reload(Unit *u); -int unit_kill(Unit *u, KillWho w, int signo, sd_bus_error *error); -int unit_kill_common(Unit *u, KillWho who, int signo, pid_t main_pid, pid_t control_pid, sd_bus_error *error); +int unit_kill(Unit *u, KillWho w, int signo, int code, int value, sd_bus_error *error); +int unit_kill_common(Unit *u, KillWho who, int signo, int code, int value, pid_t main_pid, pid_t control_pid, sd_bus_error *error); void unit_notify_cgroup_oom(Unit *u, bool managed_oom); |