Force reconnect to the db after fork.

This commit is contained in:
Isaac Connor 2016-05-13 09:09:49 -04:00
parent 1ce2e597cf
commit 3a0aa09c2f
1 changed files with 2 additions and 0 deletions

View File

@ -459,6 +459,8 @@ sub start
}
elsif ( defined($cpid ) )
{
# Force reconnection to the db.
zmDbConnect(1);
logReinit();
dPrint( ZoneMinder::Logger::INFO, "'".join( ' ', ( $daemon, @args ) )