A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make it work on win32 ; some more debug msgs
[simgrid.git]
/
examples
/
ping
/
ping.c
diff --git
a/examples/ping/ping.c
b/examples/ping/ping.c
index 069c7c53b86d89fc078fe9527c4c71ff353a495b..460e30400e2cbfb286d29bfdc882ef418a8d587e 100644
(file)
--- a/
examples/ping/ping.c
+++ b/
examples/ping/ping.c
@@
-116,9
+116,10
@@
int server (int argc,char *argv[]) {
if (!gras_if_RL())
gras_os_sleep(1,0);
if (!gras_if_RL())
gras_os_sleep(1,0);
+
gras_socket_close(g->sock);
free(g);
gras_socket_close(g->sock);
free(g);
-
xbt
_exit();
+
gras
_exit();
INFO0("SERVER: Done.");
return no_error;
}
INFO0("SERVER: Done.");
return no_error;
}
@@
-194,7
+195,7
@@
int client(int argc,char *argv[]) {
gras_socket_close(g->sock);
free(g);
gras_socket_close(g->sock);
free(g);
-
xbt
_exit();
+
gras
_exit();
INFO0("Client: Done.");
return 0;
}
INFO0("Client: Done.");
return 0;
}