]> 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..996d8e019a6a7aadd374799da28499f97dcb1ce4 100644 (file)
@@ -798,9 +798,12 @@ 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");
        return (fd_get(socket, &fd) == fd_rsocket) ?
                rshutdown(fd, how) : real.shutdown(fd, how);
 }