ProcDispatcher: fix possible race at startup
This commit is contained in:
parent
0d436deb9e
commit
ad6a2ef090
1 changed files with 2 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in a new issue