From 2d728b2fd66fee867a9c85a183c6db138d8108f0 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 14 Dec 2017 16:42:00 +0100 Subject: [PATCH] utils: use lxc_raw_clone() in run_command() Signed-off-by: Christian Brauner --- src/lxc/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/utils.c b/src/lxc/utils.c index a82a2f494..79e47732c 100644 --- a/src/lxc/utils.c +++ b/src/lxc/utils.c @@ -2230,7 +2230,7 @@ int run_command(char *buf, size_t buf_size, int (*child_fn)(void *), void *args) return -1; } - child = fork(); + child = lxc_raw_clone(0); if (child < 0) { close(pipefd[0]); close(pipefd[1]); -- 2.47.2