From: Sean Hefty Date: Mon, 13 Aug 2012 21:47:35 +0000 (-0700) Subject: Refresh of fork-connect X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=af2f529bdcc4ae2ec8db2948e6c31c8ce81d2a49;p=~shefty%2Flibrdmacm.git Refresh of fork-connect --- diff --git a/src/preload.c b/src/preload.c index 33f3baf6..2b115d32 100644 --- a/src/preload.c +++ b/src/preload.c @@ -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;