Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s/TRY/TRYOLD/ I'd like to introduce a TRY macro in the exception mecanism, but this...
[simgrid.git] / src / gras / Transport / sg_transport.c
index c261a05..4448111 100644 (file)
@@ -48,8 +48,8 @@ gras_trp_select(double timeout,
         MSG_host_get_name(MSG_host_self()),
         timeout);
 
-  r_pid = MSG_task_select_from((m_channel_t) pd->chan, timeout);
-
+  TRYOLD(MSG_channel_select_from((m_channel_t) pd->chan, timeout, &r_pid));
+  
   if (r_pid < 0) {
     DEBUG0("TIMEOUT");
     return timeout_error;
@@ -74,7 +74,7 @@ gras_trp_select(double timeout,
   /* Socket to expeditor not created yet */
   DEBUG0("Create a socket to the expeditor");
   
-  TRY(gras_trp_plugin_get_by_name("buf",&trp));
+  TRYOLD(gras_trp_plugin_get_by_name("buf",&trp));
   
   gras_trp_socket_new(1,dst);
   (*dst)->plugin   = trp;