diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index c42548662..5366c21fe 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -2317,7 +2317,7 @@ static char** do_lxcapi_get_ips(struct lxc_container *c, const char* interface, /* 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 */