X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6aee8176bcb1a32402d11424b1f2c027ceec1b6e..8b21ab47f7af2ce3bb20bdce93d74a6b709c5580:/examples/gras/rpc/rpc.c diff --git a/examples/gras/rpc/rpc.c b/examples/gras/rpc/rpc.c index 8eadcfd6a7..94fe661cd8 100644 --- a/examples/gras/rpc/rpc.c +++ b/examples/gras/rpc/rpc.c @@ -196,6 +196,7 @@ int client(int argc,char *argv[]) { gras_msg_send(toserver,gras_msgtype_by_name("kill"),NULL); gras_msg_send(toforwarder,gras_msgtype_by_name("kill"),NULL); + gras_os_sleep(1); /* give peer a chance to get the message before closing the socket */ /* 11. Cleanup the place before leaving */ gras_socket_close(toserver);