Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
- set the value stored in the PID pointer to the correct result.
authordutot <dutot@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 9 Feb 2006 10:31:29 +0000 (10:31 +0000)
committerdutot <dutot@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 9 Feb 2006 10:31:29 +0000 (10:31 +0000)
 - 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

index fd35c1b..2bd20ed 100644 (file)
@@ -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();