From 3c887fcb70c8f0293037e2ee2820dce42af3a863 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 29 Jul 2018 23:02:14 +0200 Subject: [PATCH] conf: s/pipe()/pipe2()/g Signed-off-by: Christian Brauner --- src/lxc/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 0cd686861..6e53aa6ad 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -3999,7 +3999,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; @@ -4081,7 +4081,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; -- 2.47.2