mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-12-15 23:40:16 +00:00
FairMQ: stop device if binding was unsuccessful (not updated dynamically).
This commit is contained in:
committed by
Mohammad Al-Turany
parent
459b42add2
commit
1fa5c836a6
@@ -232,6 +232,13 @@ void FairMQDevice::InitWrapper()
|
|||||||
// Bind channels. Here one run is enough, because bind settings should be available locally
|
// Bind channels. Here one run is enough, because bind settings should be available locally
|
||||||
// If necessary this could be handled in the same way as the connecting channels
|
// If necessary this could be handled in the same way as the connecting channels
|
||||||
AttachChannels(uninitializedBindingChannels);
|
AttachChannels(uninitializedBindingChannels);
|
||||||
|
|
||||||
|
if (uninitializedBindingChannels.size() > 0)
|
||||||
|
{
|
||||||
|
LOG(ERROR) << uninitializedBindingChannels.size() << " of the binding channels could not initialize. Initial configuration incomplete.";
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
// notify parent thread about completion of first validation.
|
// notify parent thread about completion of first validation.
|
||||||
{
|
{
|
||||||
lock_guard<mutex> lock(fInitialValidationMutex);
|
lock_guard<mutex> lock(fInitialValidationMutex);
|
||||||
|
|||||||
Reference in New Issue
Block a user