From b4452399db19d4d631b9882a1d82cc3f92f75c00 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Wed, 16 May 2012 11:59:05 -0700 Subject: [PATCH] Refresh of rstream-spinpoll --- examples/rstream.c | 4 ++-- man/rstream.1 | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.46.0