Re: Re: [iPAQ] run-once ?

From: Alan Cox <alan_at_lxorguk.ukuu.org.uk>
Date: Mon, 31 Dec 2001 12:48:22 +0000 (GMT)

> 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.

> the more interesting part is dealing with the "it already runs" case.
> cycling it to the foreground would probably be the best answer. that is
> windowmanager territory, something I haven't coded in so far.

Alan
Received on Mon Dec 31 2001 - 04:37:45 EST

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