]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc_clone: bump stack size to 8MB 2987/head
authorTycho Andersen <tycho@tycho.ws>
Wed, 29 May 2019 14:47:35 +0000 (08:47 -0600)
committerTycho Andersen <tycho@tycho.ws>
Wed, 29 May 2019 14:47:35 +0000 (08:47 -0600)
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 <tycho@tycho.ws>
src/lxc/namespace.c

index 22c19f647bfa3a2d68a8d552070f331eb8a5c6eb..4ede96f2fa468d97f69afeca809f32a0fede1449 100644 (file)
@@ -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;