File tree Expand file tree Collapse file tree
Detectors/Base/include/DetectorsBase Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class Aligner : public o2::conf::ConfigurableParamHelper<Aligner>
3737
3838 private:
3939 std::string mCCDB = " http://ccdb-test.cern.ch:8080" ; // URL for CCDB acces
40- std::string mDetectors = " all " ; // comma-separated list of modules to align, "all" or "none"
40+ std::string mDetectors = " none " ; // comma-separated list of modules to align, "all" or "none"
4141 long mTimeStamp = 0 ; // assigned TimeStamp or now() if 0
4242
4343 O2ParamDef (Aligner, " align-geom" );
Original file line number Diff line number Diff line change @@ -147,12 +147,12 @@ class O2PrimaryServerDevice final : public FairMQDevice
147147 static std::vector<std::thread> threads;
148148 LOG (INFO ) << " LAUNCHING STATUS THREAD" ;
149149 auto lambda = [this ]() {
150- auto & channel = fChannels .at (" o2sim-primserv-info" ).at (0 );
151- if (!channel.IsValid ()) {
152- LOG (ERROR ) << " channel not valid" ;
153- }
154- std::unique_ptr<FairMQMessage> request (channel.NewSimpleMessage (-1 ));
155150 while (mState != O2PrimaryServerState::Stopped) {
151+ auto & channel = fChannels .at (" o2sim-primserv-info" ).at (0 );
152+ if (!channel.IsValid ()) {
153+ LOG (ERROR ) << " channel primserv-info not valid" ;
154+ }
155+ std::unique_ptr<FairMQMessage> request (channel.NewSimpleMessage (-1 ));
156156 int timeout = 100 ; // 100ms --> so as not to block and allow for proper termination of this thread
157157 if (channel.Receive (request, timeout) > 0 ) {
158158 LOG (INFO ) << " INFO REQUEST RECEIVED" ;
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ class O2SimDevice final : public FairMQDevice
9393 std::unique_ptr<FairMQMessage> request (channel.NewSimpleMessage (O2PrimaryServerInfoRequest::Config));
9494 std::unique_ptr<FairMQMessage> reply (channel.NewMessage ());
9595
96- int timeoutinMS = 4000 ; // wait for 4s max --> should be fast reply
96+ int timeoutinMS = 60000 ; // wait for 60s max --> should be fast reply
9797 if (channel.Send (request, timeoutinMS) > 0 ) {
9898 LOG (INFO ) << " Waiting for configuration answer " ;
9999 if (channel.Receive (reply, timeoutinMS) > 0 ) {
Original file line number Diff line number Diff line change @@ -170,11 +170,11 @@ void sighandler(int signal)
170170{
171171 if (signal == SIGINT || signal == SIGTERM ) {
172172 LOG (INFO ) << " o2-sim driver: Signal caught ... clean up and exit" ;
173- cleanup ();
174173 // forward signal to all children
175174 for (auto & pid : gChildProcesses ) {
176175 killpg (pid, signal);
177176 }
177+ cleanup ();
178178 exit (0 );
179179 }
180180}
@@ -586,7 +586,6 @@ int main(int argc, char* argv[])
586586 }
587587
588588 LOG (DEBUG ) << " ShmManager operation " << o2::utils::ShmManager::Instance ().isOperational () << " \n " ;
589- cleanup ();
590589
591590 // do a quick check to see if simulation produced something reasonable
592591 // (mainly useful for continuous integration / automated testing suite)
@@ -607,5 +606,6 @@ int main(int argc, char* argv[])
607606 LOG (INFO ) << " SIMULATION RETURNED SUCCESFULLY" ;
608607 }
609608
609+ cleanup ();
610610 return returncode;
611611}
You can’t perform that action at this time.
0 commit comments