Commit 75acdda7 authored by Eric Cano's avatar Eric Cano
Browse files

Added delay to ensure the last reported stats have enough time to get...

Added delay to ensure the last reported stats have enough time to get processes by the initial process before the session process exits.
parent fc3527a5
......@@ -232,6 +232,10 @@ protected:
castor::server::MutexLocker locker(&m_mutex);
reportStats();
}
// We have a race condition here between the processing of this message by
// the initial process and the printing of the end-of-session log, triggered
// by the end our process. To delay the latter, we sleep half a second here.
usleep(500*1000);
}
public:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment