From f0f0e53eee661900f54feb3a9501c30d550f8e5f Mon Sep 17 00:00:00 2001 From: dutot Date: Thu, 9 Feb 2006 10:31:29 +0000 Subject: [PATCH] - 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 --- src/msg/gos.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.20.1