lockfiles & fork()
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 28, 2006, 01:21 UTC
- Message-ID
- <Pine.LNX.4.63.0610280319250.26682@wbgn013.biozentrum.uni-wuerzburg.de>
Hi,
when you setup a lockfile, and then fork(), you could easily end up with atexit() kicking in to remove the lockfile, before the main process has a chance to commit. (Yes, I need to hold the lock long before the fork()).
Any ideas how to solve the problem?
Ciao, Dscho