[lxc-devel] [PATCH] lxc-test-apparmor: flush the pipe before exiting child

Stéphane Graber stgraber at ubuntu.com
Mon Apr 6 16:05:57 UTC 2015


On Fri, Apr 03, 2015 at 11:40:49PM +0000, Serge Hallyn wrote:
> to make sure the parent's read returns.
> 
> Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>

Acked-by: Stéphane Graber <stgraber at ubuntu.com>

> ---
>  src/tests/aa.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/tests/aa.c b/src/tests/aa.c
> index b8689ac..1ab1997 100644
> --- a/src/tests/aa.c
> +++ b/src/tests/aa.c
> @@ -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;
>  }
>  
> -- 
> 2.1.4
> 
> _______________________________________________
> lxc-devel mailing list
> lxc-devel at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-devel

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20150406/510c945c/attachment.sig>


More information about the lxc-devel mailing list