X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/80a7ae91cc649d21e96ea4ea1b3f17364494f546..36b5d5f9f78b0d496663aa3b8d3e5f82ca48a5a1:/src/gras/Msg/gras_msg_listener.c diff --git a/src/gras/Msg/gras_msg_listener.c b/src/gras/Msg/gras_msg_listener.c index c1862247c8..3d74618de4 100644 --- a/src/gras/Msg/gras_msg_listener.c +++ b/src/gras/Msg/gras_msg_listener.c @@ -53,6 +53,7 @@ gras_msg_listener_launch(xbt_queue_t msg_exchange){ arg->incomming_messages = msg_exchange; arg->listener = xbt_thread_create("listener",listener_function,arg); + gras_os_sleep(0); /* give the listener a chance to initialize even if the main is empty and we cancel it right afterward */ return arg; }