git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@171
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
TRY(sock_iter->plugin->socket_accept(sock_iter,&accepted));
accepted->raw = sock_iter->raw;
- TRY(gras_dynar_push(sockets,&accepted));
} else {
#if 0
FIXME: this fails of files. quite logical
sock->raw = 0;
*dst = sock;
- return no_error;
+
+ return gras_dynar_push(gras_socketset_get(),dst);
}
}
*dst = sock;
- /* Register this socket */
- errcode = gras_dynar_push(gras_socketset_get(),dst);
- if (errcode != no_error) {
- free(sock);
- *dst = NULL;
- return errcode;
- }
return no_error;
}
return errcode;
}
- /* register socket */
*dst = sock;
- errcode = gras_dynar_push(gras_socketset_get(),dst);
- if (errcode != no_error) {
- free(sock);
- *dst = NULL;
- return errcode;
- }
return no_error;
}