[arch-commits] Commit in openssh/trunk (sshd)

Aaron Griffin aaron at archlinux.org
Tue Dec 1 21:40:13 UTC 2009


    Date: Tuesday, December 1, 2009 @ 16:40:12
  Author: aaron
Revision: 60182

Use pidof instead of trusting the pid file

Modified:
  openssh/trunk/sshd

------+
 sshd |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: sshd
===================================================================
--- sshd	2009-12-01 21:25:33 UTC (rev 60181)
+++ sshd	2009-12-01 21:40:12 UTC (rev 60182)
@@ -4,7 +4,7 @@
 . /etc/rc.d/functions
 . /etc/conf.d/sshd
 
-PID=`cat /var/run/sshd.pid 2>/dev/null`
+PID=$(pidof -o %PPID /usr/sbin/sshd)
 case "$1" in
   start)
     stat_busy "Starting Secure Shell Daemon"




More information about the arch-commits mailing list