[arch-commits] Commit in deluge/trunk (deluged)

Jan Steffens heftig at archlinux.org
Sat Jul 21 16:13:37 UTC 2012


    Date: Saturday, July 21, 2012 @ 12:13:37
  Author: heftig
Revision: 163891

Suppress noise when pidfile is stale

Modified:
  deluge/trunk/deluged

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

Modified: deluged
===================================================================
--- deluged	2012-07-21 14:40:46 UTC (rev 163890)
+++ deluged	2012-07-21 16:13:37 UTC (rev 163891)
@@ -8,7 +8,7 @@
 OPTIONS="-P $PIDFILE $OPTIONS"
 
 [[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
-[[ -z $PID ]] || kill -0 $PID || PID=
+[[ -z $PID ]] || kill -0 $PID &>/dev/null || PID=
 
 case "$1" in
   start)




More information about the arch-commits mailing list