From: Christian Brauner Date: Sun, 29 Jul 2018 21:02:14 +0000 (+0200) Subject: conf: s/pipe()/pipe2()/g X-Git-Tag: lxc-3.1.0~185^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=979f9e34c36be01ca916faf805248cfeae8957df;p=thirdparty%2Flxc.git conf: s/pipe()/pipe2()/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index ff9bd091b..e55c40bf2 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4359,7 +4359,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; @@ -4441,7 +4441,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;