apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohan Nandode <rnand...@yahoo.com>
Subject More problem with apr_proc_mutex
Date Sat, 05 Apr 2003 10:21:18 GMT

  Thanks for all the responses!

> 2. you probably want to be explicit, anyways, about
> your mutex method,
>    e.g. try this list in order...

I tried to use APR_LOCK_FCNTL locking method. But it
is also giving same problems. What I observed in FCNTL
locking is,
1. First process while creating a mutex opens a lock
file, gets the fd and stores it for further
operations. Then it unlinks the file.
2. When second process creates mutex, it again creates
a file, stores the fd and deletes it.
3. Even though lock file name is same in the
processes, the fd's are independant.
   Hence both processes can get the write lock

4. If both processes create mutexes
simultaneously(before unlinking the lock file by
either of them), then it works fine.

What would be the solution for this apart from using


Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

View raw message