]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
criu: s/pipe()/pipe2()/
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 29 Jul 2018 21:07:33 +0000 (23:07 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 15:02:25 +0000 (16:02 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/criu.c

index c1816d481da84e0439e45806edec17e6004169fb..0c29a1374bd27294ed31b06eedf28a0713bcbe68 100644 (file)
@@ -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;
        }