From 762232b07a7c15c85427c622203c8ed9cc43df7e Mon Sep 17 00:00:00 2001 From: Felipe Moura Date: Sun, 19 Jul 2026 13:09:40 -0300 Subject: [PATCH] boards/dropbear: retain child exit status for NSH PTY session Dropbear's NSH PTY session reaps the child task with waitpid() and needs CONFIG_SCHED_CHILD_STATUS (which depends on SCHED_HAVE_PARENT). Without it the session fails with ECHILD right after authentication ("NSH session wait failed: Unknown error 10"). netutils/dropbear now "depends on SCHED_CHILD_STATUS" per the project's depends-on-over-select policy (apache/nuttx-apps#3648), so enable it in the sim and esp32c3-devkit Dropbear defconfigs (SCHED_HAVE_PARENT is already enabled there). Signed-off-by: Felipe Moura --- boards/risc-v/esp32c3/esp32c3-devkit/configs/dropbear/defconfig | 1 + boards/sim/sim/sim/configs/dropbear/defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/boards/risc-v/esp32c3/esp32c3-devkit/configs/dropbear/defconfig b/boards/risc-v/esp32c3/esp32c3-devkit/configs/dropbear/defconfig index f6be9e8628f7c..4f4eae571250d 100644 --- a/boards/risc-v/esp32c3/esp32c3-devkit/configs/dropbear/defconfig +++ b/boards/risc-v/esp32c3/esp32c3-devkit/configs/dropbear/defconfig @@ -73,6 +73,7 @@ CONFIG_PSEUDOTERM_TXBUFSIZE=2048 CONFIG_PTHREAD_MUTEX_TYPES=y CONFIG_RR_INTERVAL=200 CONFIG_SCHED_BACKTRACE=y +CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_LPWORK=y CONFIG_SCHED_WAITPID=y diff --git a/boards/sim/sim/sim/configs/dropbear/defconfig b/boards/sim/sim/sim/configs/dropbear/defconfig index e5990f622ce1d..af93cff403fa2 100644 --- a/boards/sim/sim/sim/configs/dropbear/defconfig +++ b/boards/sim/sim/sim/configs/dropbear/defconfig @@ -72,6 +72,7 @@ CONFIG_PSEUDOFS_SOFTLINKS=y CONFIG_PSEUDOTERM=y CONFIG_READLINE_TABCOMPLETION=y CONFIG_SCHED_BACKTRACE=y +CONFIG_SCHED_CHILD_STATUS=y CONFIG_SCHED_HAVE_PARENT=y CONFIG_SCHED_WAITPID=y CONFIG_SIM_NETDEV=y