]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
rsockets: Fix shutdown
authorSean Hefty <sean.hefty@intel.com>
Thu, 26 Jul 2012 22:35:32 +0000 (15:35 -0700)
committerSean Hefty <sean.hefty@intel.com>
Thu, 26 Jul 2012 22:35:32 +0000 (15:35 -0700)
mpi finalize hangs - fix it

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/preload.c

index 52eaf1a52b31f083e542d1e6b88fd56e313e39f3..515cc1053aa334b54e2dd9c16ffc10b8def24d85 100644 (file)
@@ -798,9 +798,13 @@ int select(int nfds, fd_set *readfds, fd_set *writefds,
        return ret;
 }
 
+#include <stdio.h>
+
 int shutdown(int socket, int how)
 {
        int fd;
+       printf("shutdown how %s\n", how == SHUT_RDWR ? "RDWR" : how == SHUT_RD ? "RD" : "WR");
+       fflush(stdout);
        return (fd_get(socket, &fd) == fd_rsocket) ?
                rshutdown(fd, how) : real.shutdown(fd, how);
 }