From 7da3e6189cfb7aa6ab47b92a7897543fb72ea820 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Mon, 31 Mar 2008 15:24:26 +0000 Subject: Ignore errors writing to oom_adj (closes: #473573). --- debian/changelog | 6 ++++++ debian/openssh-server.init | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 7fc742c32..c3b41dd66 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +openssh (1:4.7p1-7) UNRELEASED; urgency=low + + * Ignore errors writing to oom_adj (closes: #473573). + + -- Colin Watson Mon, 31 Mar 2008 16:23:26 +0100 + openssh (1:4.7p1-6) unstable; urgency=low * Disable the Linux kernel's OOM-killer for the sshd parent; tweak diff --git a/debian/openssh-server.init b/debian/openssh-server.init index 8c38eedf5..862d117c1 100644 --- a/debian/openssh-server.init +++ b/debian/openssh-server.init @@ -75,7 +75,7 @@ adjust_oom() { if [ -e /var/run/sshd.pid ]; then PID="$(head -n1 /var/run/sshd.pid)" if [ -e "/proc/$PID/oom_adj" ]; then - printf '%s' "$SSHD_OOM_ADJUST" >"/proc/$PID/oom_adj" + printf '%s' "$SSHD_OOM_ADJUST" >"/proc/$PID/oom_adj" || true fi fi } -- cgit v1.2.3