]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-test-apparmor: flush the pipe before exiting child
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 3 Apr 2015 23:40:49 +0000 (23:40 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 6 Apr 2015 16:12:10 +0000 (12:12 -0400)
to make sure the parent's read returns.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/tests/aa.c

index b8689ac3f49cf1894288881710e666fad63d2552..1ab1997232c4fcf5cade0ea33a4e863054ad026b 100644 (file)
@@ -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;
 }