On Mon, Dec 31, 2001 at 02:11:55PM +0100, Vegard Engen wrote:
> Well, but how do you avoid race conditions? That is, by the time you're
> finished looping through all the /proc/(pid)'s, what's to stop something else
> from having started a new process?
assumptions :)
I do assume that I'm dealing with a PDA device and the user is working
on a single window. therefore, the risk above, while real technically,
is sufficiently unlikely that I believe I can ignore it.
lockfiles are great. but then you have to find a way to ensure that the
app can't be started any other way.
-- http://web.lemuria.org/pubkey.html pub 1024D/D88D35A6 2001-11-14 Tom Vogt <tom@lemuria.org> Key fingerprint = 276B B7BB E4D8 FCCE DB8F F965 310B 811A D88D 35A6Received on Mon Dec 31 06:45:49 2001
This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:41:27 EDT