Re: [iPAQ] run-once ?

From: Alan Cox <alan_at_lxorguk.ukuu.org.uk>
Date: Mon, 31 Dec 2001 00:26:16 +0000 (GMT)

> I'm working on a simple app to make use of the ipaq's buttons and of
> course I don't want to start 20 sessions of mingle if I hit the 2nd
> button a little too often. :)

Something as simple as doing

        open lockfile
        flock lockfile
        exec binary

will work. The binary will close the lock file when it exits,breaking the
lock. flock allows you to test a lock so you can avoid blocking taking it
Received on Sun Dec 30 2001 - 16:15:41 EST

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