]> 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>
Sun, 29 Jul 2018 22:16:15 +0000 (00:16 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/criu.c

index 64ea4f0248d62e9dcf3c5385c134cd685999ce40..ac4805aa6e559dfff652c86c12dddfe341a1c495 100644 (file)
@@ -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;
        }