Commit 8d66bdcd 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 19326d17
......@@ -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;
}
......
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