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

Jan Steffens heftig at archlinux.org
Thu Apr 26 07:24:21 UTC 2012


    Date: Thursday, April 26, 2012 @ 03:24:21
  Author: heftig
Revision: 157225

FS#29610

Modified:
  deluge/trunk/deluge-web
  deluge/trunk/deluged

------------+
 deluge-web |    2 +-
 deluged    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Modified: deluge-web
===================================================================
--- deluge-web	2012-04-26 06:42:14 UTC (rev 157224)
+++ deluge-web	2012-04-26 07:24:21 UTC (rev 157225)
@@ -8,7 +8,7 @@
 WEB_OPTIONS="-f $WEB_OPTIONS"
 
 [[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
-kill -0 $PID || PID=
+[[ -z $PID ]] || kill -0 $PID || PID=
 
 case "$1" in
   start)

Modified: deluged
===================================================================
--- deluged	2012-04-26 06:42:14 UTC (rev 157224)
+++ deluged	2012-04-26 07:24:21 UTC (rev 157225)
@@ -8,7 +8,7 @@
 OPTIONS="-P $PIDFILE $OPTIONS"
 
 [[ -f $PIDFILE ]] && PID=$(<$PIDFILE)
-kill -0 $PID || PID=
+[[ -z $PID ]] || kill -0 $PID || PID=
 
 case "$1" in
   start)




More information about the arch-commits mailing list