]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- -w test won't work in vserver, and stderr should be redirected priour stdout
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 29 Oct 2008 13:54:28 +0000 (13:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    opensshd.init -> 1.33

opensshd.init

index 17c2a2b9274cbc7f9c93c502eacb0ddff4a2381d..a6cf16ed9bbf17b16ab0a780a7d24ab181835445 100644 (file)
@@ -30,13 +30,11 @@ else
 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() {
This page took 0.059985 seconds and 4 git commands to generate.