]> git.ipfire.org Git - thirdparty/systemd.git/commit
oomd: implement a prekill varlink event 38584/head
authorMatteo Croce <teknoraver@meta.com>
Mon, 25 Aug 2025 15:13:00 +0000 (17:13 +0200)
committerMatteo Croce <teknoraver@meta.com>
Mon, 9 Feb 2026 01:05:57 +0000 (02:05 +0100)
commitc1bf450fa06e1d120a5d4ca782e82a68b8662b09
tree7fc7a2f57fc9312f87a031517829151284c52809
parent67cbfbbf4b76d5d66ea32906812278d0ba7eb65c
oomd: implement a prekill varlink event

When a cgroup is selected for termination, send varlink messages
to hooks registered in `/run/systemd/oomd.prekill-hooks/`.
oomd waits up to `PreKillHookTimeoutSec=` seconds for response
before proceeding with the kill.
13 files changed:
man/oomd.conf.xml
src/basic/constants.h
src/oom/oomd-conf.c
src/oom/oomd-manager.c
src/oom/oomd-manager.h
src/oom/oomd-util.c
src/oom/oomd-util.h
src/oom/test-oomd-util.c
src/shared/meson.build
src/shared/varlink-io.systemd.oom.Prekill.c [new file with mode: 0644]
src/shared/varlink-io.systemd.oom.Prekill.h [new file with mode: 0644]
src/test/test-varlink-idl.c
test/units/TEST-55-OOMD.sh