Subject: Re: Should programs clean-up their /var/run/*.pid files?
To: Andrew Brown <codewarrior@daemon.org>
From: Scott Reynolds <scottr@Plexus.COM>
List: current-users
Date: 06/06/1997 13:21:45
On Fri, 6 Jun 1997, Andrew Brown wrote:

> um...sh forks when it runs [ from bin, or did you forget?

He suggested:

> >kill -0 `cat /var/run/xntpd.pid` && { ... }

which doesn't use [, and hence doesn't fork twice when once will do.

--scott