From: Christian Brauner Date: Sat, 21 Oct 2017 14:27:34 +0000 (+0200) Subject: namespace: use lxc_getpagesize() X-Git-Tag: lxc-3.0.0.beta1~210^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2028b8f5ff873ebee3a66cee9c2e99310b235f8;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;