X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5486850142571424fa1e9c1c7f1f68f4b07f01f3..bc0a5dc216778e8596a60177e35f13fdc429fcb1:/examples/ping/ping.c?ds=inline diff --git a/examples/ping/ping.c b/examples/ping/ping.c index 39ca8dd11c..5724135eaa 100644 --- a/examples/ping/ping.c +++ b/examples/ping/ping.c @@ -116,13 +116,10 @@ int server (int argc,char *argv[]) { gras_socket_my_port(g->sock)); g->endcondition=0; - while (1) { - errcode = gras_msg_handle(10.0); - if (errcode != no_error && errcode != timeout_error) - return errcode; - if (g->endcondition) - break; - } + errcode = gras_msg_handle(600.0); + if (errcode != no_error) + return errcode; + if (g->endcondition) if (!gras_if_RL()) gras_sleep(5,0);