Commit fad50046 by Serge Hallyn Committed by Stéphane Graber

lxc-test-apparmor: flush the pipe before exiting child

to make sure the parent's read returns. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 56e4a185
...@@ -47,9 +47,11 @@ static int test_attach_write_file(void* payload) ...@@ -47,9 +47,11 @@ static int test_attach_write_file(void* payload)
if (f) { if (f) {
printf("yes\n"); printf("yes\n");
fclose(f); fclose(f);
fflush(NULL);
return 1; return 1;
} }
printf("no\n"); printf("no\n");
fflush(NULL);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment