in reply to Re: Race condition in my cron daemon
in thread Race condition in my cron daemon
But I have a feeling that that isn't the problem, because the same connection ID is used to obtain the lock and to update the jobs table (both of which happen in the parent process) - and this I can see in the database log. The REPLACE statement finally runs when I shut down the server, so something somewhere is hanging onto that lock.
As far as reusing the connection in the child, I specifically clear out the DBI connection cache and request a new connection in the child. Again, in the logs, I can see that the parent and child are using different, new, connections.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Race condition in my cron daemon
by tilly (Archbishop) on Mar 21, 2006 at 06:22 UTC |