From: Christian Brauner Date: Sat, 21 Oct 2017 14:27:34 +0000 (+0200) Subject: namespace: use lxc_getpagesize() X-Git-Tag: lxc-2.0.10~614 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=584993fc69a416a119c88c4d5a6955e5ff1bce14;p=thirdparty%2Flxc.git namespace: use lxc_getpagesize() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/namespace.c b/src/lxc/namespace.c index 3a5b3bef6..e760c0d9a 100644 --- a/src/lxc/namespace.c +++ b/src/lxc/namespace.c @@ -21,17 +21,18 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include #include +#include #include +#include #include -#include #include -#include +#include -#include "namespace.h" #include "log.h" +#include "namespace.h" +#include "utils.h" lxc_log_define(lxc_namespace, lxc); @@ -53,7 +54,7 @@ pid_t lxc_clone(int (*fn)(void *), void *arg, int flags) .arg = arg, }; - size_t stack_size = sysconf(_SC_PAGESIZE); + size_t stack_size = lxc_getpagesize(); void *stack = alloca(stack_size); pid_t ret;