Subject: Re: Should programs clean-up their /var/run/*.pid files?
To: Brian Cully <bjc@panix.com>
From: Andrew Brown <codewarrior@daemon.org>
List: current-users
Date: 06/06/1997 14:03:16
> From: Brian Cully
>
>>On Jun 6, Andrew Brown wrote:
>> if ( kill -0 `cat /var/run/xntpd.pid` 2>/dev/null ); ...
>[snip]
>> much cleaner...
>
>Except that it fork()s to execute the stuff inside the
>parenthesis. Try:
um...sh forks when it runs [ from bin, or did you forget?
>kill -0 `cat /var/run/xntpd.pid` && { ... }
what are you trying to avoid here?
--
|-----< "CODE WARRIOR" >-----|
andrew@echonyc.com (TheMan) * "ah! i see you have the internet
codewarrior@daemon.org that goes *ping*!"
warfare@graffiti.com * "information is power -- share the wealth."