From a2028b8f5ff873ebee3a66cee9c2e99310b235f8 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 21 Oct 2017 16:27:34 +0200 Subject: [PATCH] namespace: use lxc_getpagesize() Signed-off-by: Christian Brauner --- src/lxc/namespace.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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; -- 2.47.2