[Pkg-grid-commits] nws/debian nws_setup,1.2,1.3

Martin Quinson mquinson at alioth.debian.org
Mon Aug 8 22:11:52 UTC 2005


Update of /cvsroot/pkg-grid/nws/debian
In directory haydn:/tmp/cvs-serv31148

Modified Files:
	nws_setup 
Log Message:
Don't try to kill dead ones. Ie test before killing

Index: nws_setup
===================================================================
RCS file: /cvsroot/pkg-grid/nws/debian/nws_setup,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- nws_setup	8 Aug 2005 21:29:04 -0000	1.2
+++ nws_setup	8 Aug 2005 22:11:49 -0000	1.3
@@ -706,10 +706,10 @@
 	foreach $i (split(/\s+/,$stop_part)) {
 	    printf " $i";
 	  WAIT: for (my $j=0;$j<10;$j++){
-	      my $cmdline = $howto{"stop"}{$i}.($verbose?"":" 2>&1");
-	      qx,$cmdline,;
 	      $status=test($i);
 	      last WAIT if ($status eq "dead");
+	      my $cmdline = $howto{"stop"}{$i}.($verbose?"":" 2>&1");
+	      qx,$cmdline,;
 	      printf "." if $verbose;
 	      sleep 1;
 	  }




More information about the Pkg-grid-commits mailing list