This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 7469e88bf netutils/dropbear: retain child exit status for NSH PTY
session
7469e88bf is described below
commit 7469e88bfa6cff5ce3dc90c0f01fde3c18b2e863
Author: Felipe Moura <[email protected]>
AuthorDate: Sat Jul 18 12:14:02 2026 -0300
netutils/dropbear: retain child exit status for NSH PTY session
The per-session NSH task is reaped with waitpid() in
dropbear_nshsession.c. Without CONFIG_SCHED_CHILD_STATUS the kernel does
not retain the child exit status, so waitpid() returns ECHILD right after
authentication and the interactive session never starts
("NSH session wait failed: Unknown error 10").
Depend on SCHED_HAVE_PARENT and SCHED_CHILD_STATUS (following the project's
depends-on-over-select convention) so the requirement is explicit; boards
enabling Dropbear must set these in their defconfig.
Signed-off-by: Felipe Moura <[email protected]>
---
netutils/dropbear/Kconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/netutils/dropbear/Kconfig b/netutils/dropbear/Kconfig
index 8e7c0868e..abf9f4574 100644
--- a/netutils/dropbear/Kconfig
+++ b/netutils/dropbear/Kconfig
@@ -10,6 +10,8 @@ menuconfig NETUTILS_DROPBEAR
depends on !DISABLE_PSEUDOFS_OPERATIONS
depends on !DISABLE_PTHREAD
depends on SCHED_WAITPID
+ depends on SCHED_HAVE_PARENT
+ depends on SCHED_CHILD_STATUS
depends on NSH_LIBRARY
depends on FSUTILS_PASSWD
depends on PSEUDOTERM