From: Christian Brauner Date: Fri, 23 Feb 2018 13:19:34 +0000 (+0100) Subject: lxccontainer: do_lxcapi_get_interfaces() X-Git-Tag: lxc-2.0.10~241 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78a54613a5c8fc2499995d084cdc2a23b1391e64;p=thirdparty%2Flxc.git lxccontainer: do_lxcapi_get_interfaces() thread-safety: s/exit()/_exit/g Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 8f52c4b2e..2ef279ca5 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -2007,7 +2007,7 @@ static char ** do_lxcapi_get_interfaces(struct lxc_container *c) /* close the write-end of the pipe, thus sending EOF to the reader */ close(pipefd[1]); - exit(ret); + _exit(ret); } /* close the write-end of the pipe */