Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Let the client to wait a bit on startup so that it does not connect to the server...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 13 Jul 2004 21:13:30 +0000 (21:13 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 13 Jul 2004 21:13:30 +0000 (21:13 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@284 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/ping/ping.c

index 5724135..05f99cb 100644 (file)
@@ -162,8 +162,7 @@ int client(int argc,char *argv[]) {
   } 
 
   INFO2("Launch client (server on %s:%d)",host,port);
   } 
 
   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));
   if ((errcode=gras_socket_client(host,port,&(g->sock)))) {
     ERROR1("Client: Unable to connect to the server. Got %s",
           gras_error_name(errcode));