systemctl: add --kill-value= argument to systemctl
authorLennart Poettering <lennart@poettering.net>
Wed, 15 Feb 2023 09:51:33 +0000 (10:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2023 08:55:35 +0000 (09:55 +0100)
commitd06e61996d71f1600ec0bd88453f0ef043b5ca2b
tree0a11dd30c1e1b80340afcf6730e138e87f640ff5
parenta721cd0016fb662fc5888cef959eec19f96b4040
systemctl: add --kill-value= argument to systemctl

This allows accompanying a signal with a value (as supported for Linux
Realtime signals). This is particularly useful as it allows us to do
stuff like this:

   systemctl kill --kill-whom=main --kill-value=0x300 systemd-journald

In order to ask journald to flush its allocation caches and compact
memory.
src/systemctl/systemctl-kill.c
src/systemctl/systemctl.c
src/systemctl/systemctl.h