sysdeps-unix: Diagnose failure to open /proc/self/oom_score_adj
authorSimon McVittie <smcv@collabora.com>
Mon, 21 Feb 2022 16:07:26 +0000 (16:07 +0000)
committerSimon McVittie <smcv@collabora.com>
Fri, 25 Feb 2022 14:57:18 +0000 (14:57 +0000)
commitb38a39884c44470a70a703bba2ff4353c616bb97
treea14a3c780286550d604a72eb0c087e9a905e004d
parentc32b5cc4ed4ec04cd8554098b67cdff640edf927
sysdeps-unix: Diagnose failure to open /proc/self/oom_score_adj

Previously, we silently ignored this, but now that we're more careful
about the contexts in which we try to reset the OOM score and whether
we log failures as a warning, we can let the dbus-daemon-launch-helper
show a message if it can't write there.

Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 226f24144a4db4898a1f5958293d200b975baee0)
dbus/dbus-sysdeps-util-unix.c