summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main-afb-client-demo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main-afb-client-demo.c b/src/main-afb-client-demo.c
index 3da7e46e..bd0bbc40 100644
--- a/src/main-afb-client-demo.c
+++ b/src/main-afb-client-demo.c
@@ -371,6 +371,8 @@ static int process_stdin()
break;
}
if (rc < 0) {
+ if (errno == EAGAIN)
+ return 0;
fprintf(stderr, "read error: %m\n");
exit(1);
}