Bug#473573: openssh-server: oom_adj tweak in init.d prevents upgrade inside vserver
Yes indeed.
Thanks alot.
Le lundi 31 mars 2008 à 14:56 +0100, Colin Watson a écrit :
> Drat. Thanks for the report. Does applying this change to
> /etc/init.d/ssh fix it?
>
> Index: debian/openssh-server.init
> ===================================================================
> RCS file: /home/cjwatson/cvs/openssh/openssh/debian/openssh-server.init,v
> retrieving revision 1.11
> diff -p -u -r1.11 openssh-server.init
> --- debian/openssh-server.init 30 Mar 2008 20:42:51 -0000 1.11
> +++ debian/openssh-server.init 31 Mar 2008 13:54:42 -0000
> @@ -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
> }
>
--
Olivier BERGER <olivier.berger@it-sudparis.eu> (*NEW ADDRESS*)
http://www-inf.it-sudparis.eu/~olberger/ - OpenPGP-Id: 1024D/6B829EEC
Ingénieur Recherche - Dept INF
Institut TELECOM / TELECOM & Management SudParis (http://www.it-sudparis.eu/), Evry
Reply to: