From 3df90604ec03a67791b26c94aa5592d127cb0914 Mon Sep 17 00:00:00 2001 From: Tycho Andersen Date: Wed, 29 May 2019 08:47:35 -0600 Subject: [PATCH] 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 --- src/lxc/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2