]> git.pld-linux.org Git - packages/openssh.git/commitdiff
rel 3; Drop obsolete /proc/pid/oom_adj. New /proc/pid/oom_score_adj uses totally... auto/th/openssh-5_7p1-3 auto/ti/openssh-5_7p1-3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 25 Jan 2011 18:21:33 +0000 (18:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openssh.spec -> 1.348
    opensshd.init -> 1.42

openssh.spec
opensshd.init

index 86bf1ce42b2e6e99ba0ea7feb50079e00d5334ee..0b7a17f91a9f45af0aad80edb64c1f11bc7ac413 100644 (file)
@@ -29,7 +29,7 @@ Summary(ru.UTF-8):    OpenSSH - свободная реализация прото
 Summary(uk.UTF-8):     OpenSSH - вільна реалізація протоколу Secure Shell (SSH)
 Name:          openssh
 Version:       5.7p1
-Release:       2
+Release:       3
 Epoch:         2
 License:       BSD
 Group:         Applications/Networking
index d07e499c02415450abfb0dd12b5fba655a7ff2da..00e3ab227895502e2344e700f8628dd6d4bd8221 100644 (file)
@@ -8,7 +8,7 @@
 #              Ssh can be used for remote login, remote file copying, TCP port \
 #              forwarding etc. Ssh offers strong encryption and authentication.
 
-SSHD_OOM_ADJUST=-17
+SSHD_OOM_ADJUST=-1000
 
 # Source function library
 . /etc/rc.d/init.d/functions
@@ -32,11 +32,7 @@ fi
 adjust_oom() {
        if [ -e /var/run/sshd.pid ]; then
                for pid in $(cat /var/run/sshd.pid); do
-                       if [ -e /proc/$pid/oom_score_adj ]; then
-                               echo "$SSHD_OOM_ADJUST" 2>/dev/null > /proc/$pid/oom_score_adj
-                       else
-                               echo "$SSHD_OOM_ADJUST" 2>/dev/null > /proc/$pid/oom_adj
-                       fi
+                       echo "$SSHD_OOM_ADJUST" 2>/dev/null > /proc/$pid/oom_score_adj
                done
        fi
 }
This page took 0.06671 seconds and 4 git commands to generate.