From 43018c9088a9e9127c2297e69f88d35b0238b23c Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Fri, 3 Apr 2015 23:40:49 +0000 Subject: [PATCH] lxc-test-apparmor: flush the pipe before exiting child MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit to make sure the parent's read returns. Signed-off-by: Serge Hallyn Acked-by: Stéphane Graber --- src/tests/aa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/aa.c b/src/tests/aa.c index b8689ac3f..1ab199723 100644 --- a/src/tests/aa.c +++ b/src/tests/aa.c @@ -47,9 +47,11 @@ static int test_attach_write_file(void* payload) if (f) { printf("yes\n"); fclose(f); + fflush(NULL); return 1; } printf("no\n"); + fflush(NULL); return 0; } -- 2.47.2