Re: Check for instances running
- From: Paul Davis <paul linuxaudiosystems com>
- To: "Tom Liu" <tom liu flextrade com>
- Cc: jrainha olivia inesc-id pt, gtk-list gnome org
- Subject: Re: Check for instances running
- Date: Thu, 30 Oct 2003 14:46:08 -0500
>This should be a Unix question, I don't know how to do this, but maybe
>you can use Mutex to do this.
>>man mutex
>will give you detail information.
% man mutex
No manual entry for mutex
if you want the man page for pthread_mutexes, try
pthread_mutex_init. but that won't help since some implementations of
pthreads don't support cross-process mutexes.
if you want something "better" than a lock file, use a semaphore,
which is a standardized (though very cryptically documented) IPC
system for unix-like OS's. see man semop.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]