From: Christian Brauner Date: Sun, 29 Jul 2018 21:07:33 +0000 (+0200) Subject: criu: s/pipe()/pipe2()/ X-Git-Tag: lxc-2.0.10~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=705f5735284bb16de76d91946ebce5bff846ace7;p=thirdparty%2Flxc.git criu: s/pipe()/pipe2()/ Signed-off-by: Christian Brauner --- diff --git a/src/lxc/criu.c b/src/lxc/criu.c index c1816d481..0c29a1374 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -887,7 +887,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_ goto out_fini_handler; } - if (pipe(pipes) < 0) { + if (pipe2(pipes, O_CLOEXEC) < 0) { SYSERROR("pipe() failed"); goto out_fini_handler; }