]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of dsocket
authorSean Hefty <sean.hefty@intel.com>
Mon, 10 Dec 2012 23:01:47 +0000 (15:01 -0800)
committerSean Hefty <sean.hefty@intel.com>
Mon, 10 Dec 2012 23:01:47 +0000 (15:01 -0800)
src/rsocket.c

index 024c6341cc8526b0abc593313642bf2ab9bb94aa..56f6f39b907ed62a93d39a70fdeab47222101e02 100644 (file)
@@ -1009,7 +1009,7 @@ static int ds_init(struct rsocket *rs, int domain)
        if (rs->udp_sock < 0)
                return rs->udp_sock;
 
-       rs->epfd = epoll_create(0);
+       rs->epfd = epoll_create(2);
        if (rs->epfd < 0)
                return rs->epfd;
 
@@ -1040,6 +1040,7 @@ int rsocket(int domain, int type, int protocol)
                rs->cm_id->route.addr.src_addr.sa_family = domain;
                index = rs->cm_id->channel->fd;
        } else {
+printf("rsocket DGRAM\n");
                ret = ds_init(rs, domain);
                if (ret)
                        goto err;