lilalo
diff l3-agent @ 61:440d12c122d5
В индекс брать только файлы, начинающиеся с 20
author | devi |
---|---|
date | Sat Jan 21 19:09:34 2006 +0200 (2006-01-21) |
parents | 187b6636a3be |
children | c4bea959dbb1 |
line diff
1.1 --- a/l3-agent Wed Dec 28 18:44:42 2005 +0200 1.2 +++ b/l3-agent Sat Jan 21 19:09:34 2006 +0200 1.3 @@ -968,7 +968,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 '$<.*$pid.*$Config{"l3-agent"}' 2> /dev/null`) { 1.8 + elsif ($^O eq 'freebsd' && $pid && `ps axo uid,pid,command | grep '$<\\s*$pid\\s*$Config{"l3-agent"}' 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}. " : $!";