]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
refresh
authorSean Hefty <sean.hefty@intel.com>
Mon, 13 Aug 2012 18:09:26 +0000 (11:09 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 13 Aug 2012 18:09:26 +0000 (11:09 -0700)
meta
patches/fork-connect
patches/refresh-temp [deleted file]

diff --git a/meta b/meta
index 5560e10e5981aab1446290551a0118f627b3b285..686ceb63bc2245d0f954bf72aca41dcfcf1a4aaf 100644 (file)
--- a/meta
+++ b/meta
@@ -1,12 +1,11 @@
 Version: 1
-Previous: c02b105a2d909a8edd6e0712e96120b77d3b8c78
-Head: 700cb1e575522ed9665e3bdb5150d40f1b01d478
+Previous: d63ea5ece0312cdddcb9e1e8b072bf6166beb535
+Head: 88050a624781407f5f83e4494897bb1dd482699c
 Applied:
   real-close: 3409f8d6af187d25c63a5d1f8ee8bff5f14555e2
   dup2: ca5813e7cf95dee5933fc417e4a34d26f2b01824
   oobinline: ac51c1095f505373a6ec54b8f1d990259fb34d97
-  fork-connect: 70aeb9a4107206e5814d98d8ea02e15011070735
-  refresh-temp: 700cb1e575522ed9665e3bdb5150d40f1b01d478
+  fork-connect: 88050a624781407f5f83e4494897bb1dd482699c
 Unapplied:
   dbg-out: 04273ee712db4d53efb390462c1b738bb54a57df
   fstat: a62c653906870422edef5f6388dac9f76c953e35
index 1c95344940e640f678050c0e015093061922d256..1ad0be4ddcb0ba8988775220bb4096f721007f10 100644 (file)
@@ -1,5 +1,5 @@
 Bottom: 3ea2748a5c41b11a2e7033c56bddd938d2770b6c
-Top:    8e79723d04b7d3effe0d91fe456426c68892b6bb
+Top:    da811bd45f316fb30abd2a28fca7900d8b0f8de6
 Author: Sean Hefty <sean.hefty@intel.com>
 Date:   2012-08-10 21:44:39 -0700
 
@@ -28,7 +28,7 @@ Signed-off-by: Sean Hefty <sean.hefty@intel.com>
 ---
 
 diff --git a/src/preload.c b/src/preload.c
-index b18d310..9bc6c13 100644
+index b18d310..b4c319f 100644
 --- a/src/preload.c
 +++ b/src/preload.c
 @@ -99,12 +99,20 @@ static int fork_support;
@@ -180,7 +180,7 @@ index b18d310..9bc6c13 100644
 -      if (ret)
 -              return ret;
 +
-+      if (!(flags & O_NONBLOCK)) {
++      if (!(flags & O_NONBLOCK) && addr && addrlen) {
 +              ret = real.connect(fd, addr, addrlen);
 +              if (ret)
 +                      return ret;
@@ -219,7 +219,7 @@ index b18d310..9bc6c13 100644
 +              if (fdi->type == fd_fork_passive)
                        fork_passive(index);
 +              else if (fdi->type == fd_fork_active)
-+                      fork_active(index); /* NEED addr, addrlen */
++                      fork_active(index, NULL, 0);
                *fd = fdi->fd;
                return fdi->type;
  
diff --git a/patches/refresh-temp b/patches/refresh-temp
deleted file mode 100644 (file)
index 51cb473..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-Bottom: 8e79723d04b7d3effe0d91fe456426c68892b6bb
-Top:    da811bd45f316fb30abd2a28fca7900d8b0f8de6
-Author: Sean Hefty <sean.hefty@intel.com>
-Date:   2012-08-13 11:09:26 -0700
-
-Refresh of fork-connect
-
----
-
-diff --git a/src/preload.c b/src/preload.c
-index 9bc6c13..b4c319f 100644
---- a/src/preload.c
-+++ b/src/preload.c
-@@ -498,7 +498,7 @@ static int fork_active(int socket, const struct sockaddr *addr, socklen_t addrle
-       flags = real.fcntl(fd, F_GETFL);
-       real.fcntl(fd, F_SETFL, 0);
--      if (!(flags & O_NONBLOCK)) {
-+      if (!(flags & O_NONBLOCK) && addr && addrlen) {
-               ret = real.connect(fd, addr, addrlen);
-               if (ret)
-                       return ret;
-@@ -600,7 +600,7 @@ static inline enum fd_type fd_fork_get(int index, int *fd)
-               if (fdi->type == fd_fork_passive)
-                       fork_passive(index);
-               else if (fdi->type == fd_fork_active)
--                      fork_active(index); /* NEED addr, addrlen */
-+                      fork_active(index, NULL, 0);
-               *fd = fdi->fd;
-               return fdi->type;