From: José Bollo Date: Wed, 4 Jul 2018 12:59:58 +0000 (+0200) Subject: afb-client-demo: Fix bug that forbids interactive behaviour X-Git-Tag: 5.99.2~34 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-binder.git;a=commitdiff_plain;h=26286eb5a7af0b58ec602afda45eb021cc21d104 afb-client-demo: Fix bug that forbids interactive behaviour Latest change that added script compatibility (see 1f9e60c) introduced a regression that made afb-client-demo not useable interactively. Bug-AGL: SPEC-1562 Change-Id: I1e0ca5caa23ee9838ba8691f384db3d0b13bd488 Signed-off-by: José Bollo --- 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); }