Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Yeah, right. We should prevent to push the socket into the dynar in gras_trp_socket_n...
[simgrid.git] / src / gras / Transport / transport_plugin_file.c
index 1b55969..de41f4d 100644 (file)
@@ -8,7 +8,7 @@
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #include "portable.h"
-#include "transport_private.h"
+#include "gras/Transport/transport_private.h"
 #include "xbt/ex.h"
 
 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(gras_trp_file,gras_trp,
@@ -103,6 +103,8 @@ gras_socket_client_from_file(const char*path) {
         res->outgoing?'y':'n',
         res->accepting?'y':'n');
 
+  xbt_dynar_push(((gras_trp_procdata_t)
+                 gras_libdata_by_id(gras_trp_libdata_id))->sockets,&res);
   return res;
 }
 
@@ -143,6 +145,8 @@ gras_socket_t gras_socket_server_from_file(const char*path) {
         res->accepting?'y':'n');
 
   res->recv_ok=0;
+  xbt_dynar_push(((gras_trp_procdata_t)
+                 gras_libdata_by_id(gras_trp_libdata_id))->sockets,&res);
   return res;
 }