mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-17 09:25:28 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user