SOURCES: opensshd.init - -w test won't work in vserver, and stderr should b...
glen
glen at pld-linux.org
Wed Oct 29 14:54:34 CET 2008
Author: glen Date: Wed Oct 29 13:54:34 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- -w test won't work in vserver, and stderr should be redirected priour stdout
---- Files affected:
SOURCES:
opensshd.init (1.32 -> 1.33)
---- Diffs:
================================================================
Index: SOURCES/opensshd.init
diff -u SOURCES/opensshd.init:1.32 SOURCES/opensshd.init:1.33
--- SOURCES/opensshd.init:1.32 Wed Jul 23 14:02:03 2008
+++ SOURCES/opensshd.init Wed Oct 29 14:54:28 2008
@@ -30,13 +30,11 @@
fi
adjust_oom() {
- if [ -e /var/run/sshd.pid ]; then
- for pid in $(cat /var/run/sshd.pid); do
- if [ -w "/proc/$pid/oom_adj" ]; then
- echo "$SSHD_OOM_ADJUST" > "/proc/$pid/oom_adj" 2> /dev/null || :
- fi
- done
- fi
+ if [ -e /var/run/sshd.pid ]; then
+ for pid in $(cat /var/run/sshd.pid); do
+ echo "$SSHD_OOM_ADJUST" 2>/dev/null > /proc/$pid/oom_adj
+ done
+ fi
}
checkconfig() {
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/opensshd.init?r1=1.32&r2=1.33&f=u
More information about the pld-cvs-commit
mailing list