Skip to content

Commit

Permalink
utils: use lxc_raw_clone() in run_command()
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 Dec 17, 2017
1 parent a7ef315 commit 80d90c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/utils.c
Expand Up @@ -2159,7 +2159,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]);
Expand Down

0 comments on commit 80d90c3

Please sign in to comment.