[lxc-devel] [lxc/master] lxc_clone: add a comment about stack size
tych0 on Github
lxc-bot at linuxcontainers.org
Wed May 29 15:37:22 UTC 2019
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 347 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190529/040bf804/attachment.bin>
-------------- next part --------------
From edb808d1301c81d6b0a2747dffa6a7019ff20de8 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho at tycho.ws>
Date: Wed, 29 May 2019 09:36:51 -0600
Subject: [PATCH] lxc_clone: add a comment about stack size
Signed-off-by: Tycho Andersen <tycho at tycho.ws>
---
src/lxc/namespace.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/lxc/namespace.c b/src/lxc/namespace.c
index 4ede96f2fa..be47b229ec 100644
--- a/src/lxc/namespace.c
+++ b/src/lxc/namespace.c
@@ -42,6 +42,10 @@
lxc_log_define(namespace, lxc);
+/*
+ * Let's use the "standard stack limit" (i.e. glibc thread size default) for
+ * stack sizes: 8MB.
+ */
#define __LXC_STACK_SIZE (8 * 1024 * 1024)
pid_t lxc_clone(int (*fn)(void *), void *arg, int flags, int *pidfd)
{
More information about the lxc-devel
mailing list