lilalo

diff l3-agent @ 112:da65f1cbaf3a

l3prompt added
author igor
date Sat Mar 08 22:36:44 2008 +0200 (2008-03-08)
parents 4c02cf4123ee
children 658b4ea105c1
line diff
     1.1 --- a/l3-agent	Sun Jun 11 22:07:42 2006 +0300
     1.2 +++ b/l3-agent	Sat Mar 08 22:36:44 2008 +0200
     1.3 @@ -866,7 +866,7 @@
     1.4                  unlink $Config{agent_pidfile}
     1.5                      or die "Can't remove stale pidfile ". $Config{agent_pidfile}. " : $!";
     1.6              }
     1.7 -            elsif ($^O eq 'freebsd' && $pid && `ps axo uid,pid,command | grep '$<\\s*$pid\\s*$Config{"l3-agent"}' 2> /dev/null`) {
     1.8 +            elsif ($^O eq 'freebsd' && defined($pid) && $pid ne "" && not `ps axo uid,pid,command | grep '$< $pid $Config{"l3-agent"}' | grep -v grep 2> /dev/null`) {
     1.9                  print "Removing stale pidfile\n";
    1.10                  unlink $Config{agent_pidfile}
    1.11                      or die "Can't remove stale pidfile ". $Config{agent_pidfile}. " : $!";