]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of fork-connect
authorSean Hefty <sean.hefty@intel.com>
Mon, 13 Aug 2012 21:47:35 +0000 (14:47 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 13 Aug 2012 21:47:35 +0000 (14:47 -0700)
src/preload.c

index 33f3baf6377b53ad0503fb3a0dfb765250d1c2e3..2b115d32ad7f3b872ebc98e48a014d45d7cc693d 100644 (file)
@@ -184,7 +184,7 @@ static inline int fd_getd(int index)
        return fdi ? fdi->fd : index;
 }
 
-static inline enum fd_state fd_gets(int index)
+static inline enum fd_fork_state fd_gets(int index)
 {
        struct fd_info *fdi;
 
@@ -514,7 +514,7 @@ static void fork_active(int socket)
        if ((ret != sizeof msg) || msg)
                goto err2;
 
-       ret = rconnect(ret, &sin6, len);
+       ret = rconnect(ret, &addr, len);
        if (ret)
                goto err2;
 
@@ -574,7 +574,7 @@ static void fork_passive(int socket)
                goto lclose;
 
        msg = 0;
-       len = real.send(sfd, &msg, sizeof msg, MSG_NODELAY);
+       len = real.write(sfd, &msg, sizeof msgs);
        if (len != sizeof msg)
                goto lclose;