From f5723089e884738bcad1189898bcffca68d5450c Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Thu, 16 Aug 2012 15:44:18 -0700 Subject: [PATCH] Refresh of waitall-ex --- examples/rstream.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/rstream.c b/examples/rstream.c index befb7c66..1d221d0f 100644 --- a/examples/rstream.c +++ b/examples/rstream.c @@ -607,7 +607,7 @@ static int set_test_opt(char *optarg) use_async = 1; break; case 'b': - flags &= ~MSG_DONTWAIT; + flags = (flags & ~MSG_DONTWAIT) | MSG_WAITALL; break; case 'f': use_fork = 1; @@ -628,7 +628,7 @@ static int set_test_opt(char *optarg) } else if (!strncasecmp("async", optarg, 5)) { use_async = 1; } else if (!strncasecmp("block", optarg, 5)) { - flags &= ~MSG_DONTWAIT; + flags = (flags & ~MSG_DONTWAIT) | MSG_WAITALL; } else if (!strncasecmp("nonblock", optarg, 8)) { flags |= MSG_DONTWAIT; } else if (!strncasecmp("verify", optarg, 6)) { -- 2.45.2