From 1fa5c836a6c438dbe4b2ced42a9c1e9e790b7a91 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Thu, 27 Apr 2017 13:06:56 +0200 Subject: [PATCH] FairMQ: stop device if binding was unsuccessful (not updated dynamically). --- fairmq/FairMQDevice.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fairmq/FairMQDevice.cxx b/fairmq/FairMQDevice.cxx index a1936f9e..c1145963 100644 --- a/fairmq/FairMQDevice.cxx +++ b/fairmq/FairMQDevice.cxx @@ -232,6 +232,13 @@ void FairMQDevice::InitWrapper() // 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 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. { lock_guard lock(fInitialValidationMutex);