Hi, Thanks for all the responses!
> 2. you probably want to be explicit, anyways, about > your mutex method, > e.g. try this list in order... > > APR_LOCK_FCNTL 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 simultaneously. 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 APR_LOCK_FLOCK? Thanks Rohan __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com