From: mquinson Date: Tue, 13 Jul 2004 21:13:30 +0000 (+0000) Subject: Let the client to wait a bit on startup so that it does not connect to the server... X-Git-Tag: v3.3~5063 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/685c84ca21e79ae55e7d0bee0bf846f85819694d?hp=4f2b57e6c010bf43dfac730d70f98cbc8e9d1f45 Let the client to wait a bit on startup so that it does not connect to the server before it being ready git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@284 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/examples/ping/ping.c b/examples/ping/ping.c index 5724135eaa..05f99cbd30 100644 --- a/examples/ping/ping.c +++ b/examples/ping/ping.c @@ -162,8 +162,7 @@ int client(int argc,char *argv[]) { } INFO2("Launch client (server on %s:%d)",host,port); - if (!gras_if_RL()) - gras_sleep(5,0); /* Wait for the server to be setup */ + gras_sleep(5,0); /* Wait for the server to be setup */ if ((errcode=gras_socket_client(host,port,&(g->sock)))) { ERROR1("Client: Unable to connect to the server. Got %s", gras_error_name(errcode));