mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-17 03:24:59 +00:00
lxc-test-apparmor: flush the pipe before exiting child
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>
This commit is contained in:
parent
56e4a18564
commit
fad5004627
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user