ProcDispatcher: fix possible race at startup

This commit is contained in:
Fischlurch 2016-12-22 18:42:12 +01:00
parent 0d436deb9e
commit ad6a2ef090

View file

@ -85,6 +85,7 @@ namespace control {
return not queue_.empty();
})
{
Thread::sync(); // done with init; loop may run now....
INFO (session, "Proc-Dispatcher running...");
}
@ -163,6 +164,7 @@ namespace control {
runSessionThread (Subsys::SigTerm sigTerm)
{
string errorMsg;
syncPoint();
try
{
while (looper_.shallLoop())