You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/07/13 03:27:48 UTC
[incubator-nuttx-apps] branch master updated: pipe: modify default
stack size to fix stack overflow
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 7d457b4 pipe: modify default stack size to fix stack overflow
7d457b4 is described below
commit 7d457b4d0b4255abc8f84e2c6f87417e0f4c3b23
Author: Jiuzhu Dong <do...@xiaomi.com>
AuthorDate: Wed Jul 7 15:58:35 2021 +0800
pipe: modify default stack size to fix stack overflow
Change-Id: I16910ff216db6b915d7c1cc4084c0b79228769a5
Signed-off-by: Jiuzhu Dong <do...@xiaomi.com>
---
examples/pipe/Kconfig | 5 +++++
examples/pipe/pipe.h | 4 ----
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/examples/pipe/Kconfig b/examples/pipe/Kconfig
index 4d835ad..48710e5 100644
--- a/examples/pipe/Kconfig
+++ b/examples/pipe/Kconfig
@@ -11,4 +11,9 @@ config EXAMPLES_PIPE
Enable the pipe example
if EXAMPLES_PIPE
+
+config EXAMPLES_PIPE_STACKSIZE
+ int "pipe stack size"
+ default DEFAULT_TASK_STACKSIZE
+
endif
diff --git a/examples/pipe/pipe.h b/examples/pipe/pipe.h
index 59e38c5..277ed67 100644
--- a/examples/pipe/pipe.h
+++ b/examples/pipe/pipe.h
@@ -36,10 +36,6 @@
#define FIFO_PATH1 "/tmp/testfifo-1"
#define FIFO_PATH2 "/tmp/testfifo-2"
-#ifndef CONFIG_EXAMPLES_PIPE_STACKSIZE
-# define CONFIG_EXAMPLES_PIPE_STACKSIZE 1024
-#endif
-
/****************************************************************************
* Public Types
****************************************************************************/