Skip to content

Commit e1b8c8f

Browse files
FelipeMdeOclaude
andcommitted
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 <moura.fmo@gmail.com> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 09682da commit e1b8c8f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

netutils/dropbear/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ menuconfig NETUTILS_DROPBEAR
1010
depends on !DISABLE_PSEUDOFS_OPERATIONS
1111
depends on !DISABLE_PTHREAD
1212
depends on SCHED_WAITPID
13+
depends on SCHED_HAVE_PARENT
14+
depends on SCHED_CHILD_STATUS
1315
depends on NSH_LIBRARY
1416
depends on FSUTILS_PASSWD
1517
depends on PSEUDOTERM

0 commit comments

Comments
 (0)