conf: s/pipe()/pipe2()/g

parent 04017a65
......@@ -4301,7 +4301,7 @@ int userns_exec_1(struct lxc_conf *conf, int (*fn)(void *), void *data,
if (!idmap)
return -1;
ret = pipe(p);
ret = pipe2(p, O_CLOEXEC);
if (ret < 0) {
SYSERROR("Failed to create pipe");
return -1;
......@@ -4383,7 +4383,7 @@ int userns_exec_full(struct lxc_conf *conf, int (*fn)(void *), void *data,
if (!conf)
return -EINVAL;
ret = pipe(p);
ret = pipe2(p, O_CLOEXEC);
if (ret < 0) {
SYSERROR("opening pipe");
return -1;
......
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