From: dutot Date: Thu, 9 Feb 2006 10:31:29 +0000 (+0000) Subject: - set the value stored in the PID pointer to the correct result. X-Git-Tag: v3.3~3448 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f0f0e53eee661900f54feb3a9501c30d550f8e5f - set the value stored in the PID pointer to the correct result. - changed the return value to MSG_RETURN(MSG_OK) to comply with the demanded return type. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1910 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/msg/gos.c b/src/msg/gos.c index fd35c1b8f1..2bd20ed916 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -306,7 +306,8 @@ MSG_error_t MSG_channel_select_from(m_channel_t channel, double max_duration, } if(max_duration==0.0) { - return MSG_task_probe_from(channel); + *PID = MSG_task_probe_from(channel); + MSG_RETURN(MSG_OK); } else { CHECK_HOST(); h = MSG_host_self();