File tree 1 file changed +9
-0
lines changed
iceoryx_posh/source/roudi
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,11 @@ void RouDi::shutdown() noexcept
161
161
// Postpone the IpcChannelThread in order to receive TERMINATION
162
162
m_runHandleRuntimeMessageThread = false ;
163
163
164
+ /*
165
+ * This is necessary to prevent the main thread from exiting before
166
+ * the 'listen_thread_watchdog' has finished, hence ensuring a
167
+ * proper termination of the entire application.
168
+ */
164
169
if (listen_thread_watchdog.joinable ()) {
165
170
listen_thread_watchdog.join ();
166
171
}
@@ -258,6 +263,10 @@ void RouDi::processRuntimeMessages(runtime::IpcInterfaceCreator&& roudiIpcInterf
258
263
IOX_LOG (INFO, " RouDi is ready for clients" );
259
264
fflush (stdout); // explicitly flush 'stdout' for 'launch_testing'
260
265
266
+ /*
267
+ * We get information about how they are running. If as a unit, then we launch
268
+ * watchdog and send a notification about the launch, otherwise we do nothing
269
+ */
261
270
const char * invocation_id = std::getenv (" INVOCATION_ID" );
262
271
if (invocation_id != nullptr )
263
272
{
You can’t perform that action at this time.
0 commit comments