]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: warn when sd_notify fails with READY=1 or FDSTOREREMOVE=1
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Nov 2021 10:04:46 +0000 (11:04 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 3 Nov 2021 10:29:49 +0000 (11:29 +0100)
commit4bf4f50faabd9014720e3e499801d4cdb1e32f6d
tree4d5b6fb1fa9d903c63653c879c003698a66ff597
parent9214f2999b85533ad184e6508f0a0a078d9d3b8f
tree-wide: warn when sd_notify fails with READY=1 or FDSTOREREMOVE=1

Most sd_notify() calls are like log_info() — the result is only informative
and if they fail, it's best ignore this. But if a call with READY=1 fails,
the unit may enter a failed state, so we should warn about this. Similarly
for FSTOREREMOVE=1: the manager may be left with a stale fd, at least wasting
resources.
src/core/manager.c
src/login/logind-session-device.c
src/login/logind.c
src/machine/machined.c
src/nspawn/nspawn.c
src/portable/portabled.c
src/rfkill/rfkill.c
src/udev/udevd.c