From: mquinson Date: Wed, 12 Apr 2006 00:13:13 +0000 (+0000) Subject: Do not close socket which were never opened (see documentation of the gras_meas_accep... X-Git-Tag: v3.3~3228 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5cb343842f5ce9e1db20f0b24cbbc53c26f1e43f Do not close socket which were never opened (see documentation of the gras_meas_accept function, do not dig arround for hours like I did :-/ ) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2130 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/amok/Bandwidth/saturate.c b/src/amok/Bandwidth/saturate.c index ff025002c5..203535baad 100644 --- a/src/amok/Bandwidth/saturate.c +++ b/src/amok/Bandwidth/saturate.c @@ -260,7 +260,8 @@ static int amok_bw_cb_sat_begin(gras_msg_cb_ctx_t ctx, void *payload){ } INFO1("Saturation stopped on %s",gras_os_myname()); gras_socket_close(meas); - gras_socket_close(measMaster); + if (gras_if_RL()) /* On SG, accepted=master */ + gras_socket_close(measMaster); free(request); return 1; }