]> git.openfabrics.org - ~shefty/librdmacm.git/commitdiff
Refresh of rstream-spinpoll
authorSean Hefty <sean.hefty@intel.com>
Wed, 16 May 2012 18:59:05 +0000 (11:59 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 16 May 2012 18:59:05 +0000 (11:59 -0700)
examples/rstream.c
man/rstream.1

index b7c33f6bdd4fb39da87ebb902de240ecf769799a..27a6aeb0ef5d497f119da7c7440cd005fa317d80 100644 (file)
@@ -197,7 +197,7 @@ static int do_poll(struct pollfd *fds)
        int ret;
 
        do {
-               ret = rs_poll(&fds, 1, poll_timeout);
+               ret = rs_poll(fds, 1, poll_timeout);
        } while (ret < 0 && (errno == EAGAIN || errno == EWOULDBLOCK));
 
        return ret;
@@ -586,7 +586,7 @@ int main(int argc, char **argv)
                        printf("\t    a|async - asynchronous operation (use poll)\n");
                        printf("\t    b|blocking - use blocking calls\n");
                        printf("\t    n|nonblocking - use nonblocking calls\n");
-                       printf("\t    p|poll - poll on asynchronous operations\n")
+                       printf("\t    p|poll - poll on asynchronous operations\n");
                        printf("\t    v|verify - verify data\n");
                        exit(1);
                }
index 58bd7e3c3e3ac543e69f30d6746eac5bcc888f0d..98f3d8ea78d3d0b6ca4404d7968c4b80289fae9d 100644 (file)
@@ -46,6 +46,8 @@ b | blocking - uses blocking calls
 .P
 n | nonblocking - uses non-blocking calls
 .P
+p | poll - poll on asynchronous operations until complete
+.P
 v | verify - verifies data transfers
 .SH "NOTES"
 Basic usage is to start rstream on a server system, then run