Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
create the listener thread in joinable mode since we join it at the end
[simgrid.git] / src / gras / Msg / gras_msg_listener.c
index b583d58..64cfe1c 100644 (file)
@@ -97,7 +97,7 @@ gras_msg_listener_t gras_msg_listener_launch(xbt_queue_t msg_exchange)
   gras_msgtype_declare("_wakeup_listener", gras_datadesc_by_name("char"));
 
   /* actually start the thread */
-  arg->listener = xbt_thread_create("listener", listener_function, arg,0/*not joinable*/);
+  arg->listener = xbt_thread_create("listener", listener_function, arg,1/*joinable*/);
   gras_os_sleep(0);             /* TODO: useless? give the listener a chance to initialize even if the main is empty and we cancel it right afterward */
   return arg;
 }