in reply to Re^3: Race condition in my cron daemon
in thread Race condition in my cron daemon

I couldn't get this DB lock working over the fork, so I've gone a different route:

This way I avoid locking the DB at all.

Perrin, thanks for your help

Replies are listed 'Best First'.
Re^5: Race condition in my cron daemon
by perrin (Chancellor) on Apr 17, 2006 at 15:17 UTC
    Glad to hear you found something that works. Sorry I couldn't spot the problem in the original code.