httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ed Korthof ...@organic.com>
Subject Re: [PATCH] add apachectl
Date Tue, 26 Aug 1997 00:12:50 GMT
On Sun, 24 Aug 1997, Dean Gaudet wrote:
> On Sun, 24 Aug 1997, Marc Slemko wrote:
> 
> > 	PID=`cat $PIDFILE`
> > 	PS=`ps $PID | tail -1 | grep $PID`
> 
> I wonder if using "kill -0 $PID" is more portable.
> 
> +1
> 
> Dean

This should work fine so long as the process for whose existence you're
testing has the same uid as the processes which calls 'kill -0 ...' -- or
if the latter's uid is priviledged, of course.  But I have been told that
it fails in other situations.

     -- Ed Korthof        |  Web Server Engineer --
     -- ed@organic.com    |  Organic Online, Inc --
     -- (415) 278-5676    |  Fax: (415) 284-6891 --



Mime
View raw message