in reply to DBI(x) conflicting with Daemon::Simple?

Daemon::Simple uses fork, and that requires care when handling database handles. The DBI method also has something to say about fork, search for the InactiveDestroy option.

Replies are listed 'Best First'.
Re^2: DBI(x) conflicting with Daemon::Simple?
by MichaelMeyer (Novice) on Feb 23, 2009 at 17:05 UTC
    thanks! your hint lead me to just create the $dbh AFTER daemonizing, as my script doesn't need a Database connection in the parent process. Now it works fine
Re^2: DBI(x) conflicting with Daemon::Simple?
by MichaelMeyer (Novice) on Feb 26, 2009 at 09:22 UTC
    Now I have a new problem: the script is supposed to run 24/7, but after about 24 h it hangs again in the DBI Execute. After restarting the script it runs fine again. Any hints?