From: Tycho Andersen Date: Wed, 29 May 2019 14:47:35 +0000 (-0600) Subject: lxc_clone: bump stack size to 8MB X-Git-Tag: lxc-3.2.0~44^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2987%2Fhead;p=thirdparty%2Flxc.git lxc_clone: bump stack size to 8MB This is the default thread size for glibc, so it is reasonable to match that when we clone(). Mostly this is a science experiment suggested by brauner, and who doesn't love science? Signed-off-by: Tycho Andersen --- diff --git a/src/lxc/namespace.c b/src/lxc/namespace.c index 22c19f647..4ede96f2f 100644 --- a/src/lxc/namespace.c +++ b/src/lxc/namespace.c @@ -42,7 +42,7 @@ lxc_log_define(namespace, lxc); -#define __LXC_STACK_SIZE 4096 +#define __LXC_STACK_SIZE (8 * 1024 * 1024) pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd) { pid_t ret;