Re: My way to check if a progam is already running
- From: Michal Nazarewicz <mina86@xxxxxxx>
- Date: Sat, 23 Jun 2007 15:18:21 +0200
Jan Panteltje <pNaonStpealmtje@xxxxxxxxx> writes:
On Sat, 23 Jun 2007 12:05:34 +0200 it happened Michal Nazarewicz
<mina86@xxxxxxx> wrote in <871wg3j89d.fsf@xxxxxxxxxxxxxxxx>:
With the above code I think it is not possible to start two instances in
such a way that both will continue running. The worst case is that they
both will abort. (It's still a bug.)
I still don't see why you don't want to lock a file at the start and
unlock it when program terminates. It's way simpler operation:
Yes, but then you have 2 GUI up for example,
??? How locking a file lock differs from getting number of applications
with given name? Simply replace your checking routine with what I wrote
and you have the same functionality but more portable and without any
bugs.
--
Best regards, _ _
.o. | Liege of Serenly Enlightened Majesty of o' \,=./ `o
..o | Computer Science, Michal "mina86" Nazarewicz (o o)
ooo +--<mina86*tlen.pl>---<jid:mina86*chrome.pl>--ooO--(_)--Ooo--
.
- Follow-Ups:
- Re: My way to check if a progam is already running
- From: panteltje
- Re: My way to check if a progam is already running
- References:
- My way to check if a progam is already running
- From: Jan Panteltje
- Re: My way to check if a progam is already running
- From: Michal Nazarewicz
- Re: My way to check if a progam is already running
- From: Jan Panteltje
- Re: My way to check if a progam is already running
- From: Michal Nazarewicz
- Re: My way to check if a progam is already running
- From: Jan Panteltje
- Re: My way to check if a progam is already running
- From: Michal Nazarewicz
- Re: My way to check if a progam is already running
- From: Jan Panteltje
- My way to check if a progam is already running
- Prev by Date: Re: My way to check if a progam is already running
- Next by Date: Re: SDL window cause display to blink
- Previous by thread: Re: My way to check if a progam is already running
- Next by thread: Re: My way to check if a progam is already running
- Index(es):
Relevant Pages
|