Re: Check for instances running



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