Skip to content

Commit

Permalink
conf: s/pipe()/pipe2()/g
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jul 31, 2018
1 parent 04017a6 commit 3d7213d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/conf.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3d7213d

Please sign in to comment.