From: Sean Hefty Date: Wed, 16 May 2012 18:59:05 +0000 (-0700) Subject: Refresh of rstream-spinpoll X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b4452399db19d4d631b9882a1d82cc3f92f75c00;p=~shefty%2Flibrdmacm.git Refresh of rstream-spinpoll --- diff --git a/examples/rstream.c b/examples/rstream.c index b7c33f6b..27a6aeb0 100644 --- a/examples/rstream.c +++ b/examples/rstream.c @@ -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); } diff --git a/man/rstream.1 b/man/rstream.1 index 58bd7e3c..98f3d8ea 100644 --- a/man/rstream.1 +++ b/man/rstream.1 @@ -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