criu: s/pipe()/pipe2()/

parent 2ecc1524
...@@ -987,7 +987,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_ ...@@ -987,7 +987,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
goto out_fini_handler; goto out_fini_handler;
} }
if (pipe(pipes) < 0) { if (pipe2(pipes, O_CLOEXEC) < 0) {
SYSERROR("pipe() failed"); SYSERROR("pipe() failed");
goto out_fini_handler; goto out_fini_handler;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment