]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
rsocket: Set readfds event if rsocket has been disconnected
authorSean Hefty <sean.hefty@intel.com>
Mon, 25 Jun 2012 22:04:52 +0000 (15:04 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 26 Jun 2012 23:40:07 +0000 (16:40 -0700)
SIgned-off-by: Sean Hefty <sean.hefty@intel.com>
src/rsocket.c

index 394fed4d07829d4e483f55b0901b42656d01c3c0..c833d46d8ed4f9bfe5a9ea7da167037ff216cd3d 100644 (file)
@@ -1631,7 +1631,7 @@ rs_poll_to_select(int nfds, struct pollfd *fds, fd_set *readfds,
        int i, cnt = 0;
 
        for (i = 0; i < nfds; i++) {
-               if (readfds && (fds[i].revents & POLLIN)) {
+               if (readfds && (fds[i].revents & (POLLIN | POLLHUP))) {
                        FD_SET(fds[i].fd, readfds);
                        cnt++;
                }