Re: Re: [iPAQ] run-once ?

From: Tom <tom_at_lemuria.org>
Date: Mon, 31 Dec 2001 13:55:03 +0100

On Mon, Dec 31, 2001 at 12:48:22PM +0000, Alan Cox wrote:
> > that part is easy. I would, however, prefer to look into /proc or ps
> > instead, just to make sure that a) I catch cases where the binary is
> > started by other means, too and b) to avoid all sorts of trouble with
> > lockfiles not being removed correctly (kill -9).
>
> How do you expect looking in /proc to help you ? as to b) its not a problem
> because the kill will close the file and drop the lock.

hm, right. as to /proc - /proc/(pid) contains the program name in
numerous places and could reliably be used to check for running
instances. much like ps, only without invoking an external program.

-- 
http://web.lemuria.org/pubkey.html
pub  1024D/D88D35A6 2001-11-14 Tom Vogt <tom_at_lemuria.org>
     Key fingerprint = 276B B7BB E4D8 FCCE DB8F  F965 310B 811A D88D 35A6
Received on Mon Dec 31 2001 - 04:55:52 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:18:58 EDT