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:
Serge Hallyn 2015-04-03 23:40:49 +00:00 committed by Stéphane Graber
parent 56e4a18564
commit fad5004627

View 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;
}