From: Christian Brauner Date: Sun, 29 Jul 2018 21:07:33 +0000 (+0200) Subject: criu: s/pipe()/pipe2()/ X-Git-Tag: lxc-3.1.0~185^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de31cb57c27b90e724e95e66a019c0d7a0340bf5;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 64ea4f024..ac4805aa6 100644 --- a/src/lxc/criu.c +++ b/src/lxc/criu.c @@ -988,7 +988,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; }