{
logControlValidFlag() = 1;
std::call_once( flagReadEnvAutomatically, &LogControlImpl::readEnvVars, this);
+
+ // make sure the LogControl is invalidated when we fork
+ pthread_atfork( nullptr, nullptr, &LogControl::notifyFork );
}
public:
LogThread::instance().stop();
}
+ void LogControl::notifyFork()
+ {
+ logger::logControlValidFlag () = 0;
+ }
+
///////////////////////////////////////////////////////////////////
//
// LogControl::TmpExcessive