]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of fork-xfer
authorSean Hefty <sean.hefty@intel.com>
Mon, 23 Jul 2012 23:28:11 +0000 (16:28 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 23 Jul 2012 23:28:11 +0000 (16:28 -0700)
src/preload.c

index 82a41256802747b58eaa0cb6ca681e2df143ef09..79340c6f4965b98b260d2fcd775b2eba0e570548 100644 (file)
@@ -536,8 +536,8 @@ static void fork_passive(int socket)
                goto lclose;
 
        msg = 0;
-       ret = real.write(sfd, &msg, sizeof msg);
-       if (ret != sizeof msg)
+       len = real.write(sfd, &msg, sizeof msg);
+       if (len != sizeof msg)
                goto lclose;
 
        dfd = raccept(lfd, NULL, NULL);