boards/dropbear: retain child exit status for NSH PTY session#19481
Merged
linguini1 merged 1 commit intoJul 19, 2026
Merged
Conversation
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 <moura.fmo@gmail.com>
acassis
approved these changes
Jul 19, 2026
linguini1
approved these changes
Jul 19, 2026
FelipeMdeO
added a commit
to FelipeMdeO/nuttx-apps
that referenced
this pull request
Jul 20, 2026
No functional change. Re-triggers CI now that apache/nuttx#19481 (SCHED_CHILD_STATUS in the dropbear board defconfigs) has merged, which this PR's "depends on SCHED_CHILD_STATUS" requires. Signed-off-by: Felipe Moura <moura.fmo@gmail.com> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dropbear's NSH PTY session reaps the child task with
waitpid()and needsCONFIG_SCHED_CHILD_STATUS(which depends onSCHED_HAVE_PARENT). Without itthe session fails with
ECHILDright after authentication(
NSH session wait failed: Unknown error 10).netutils/dropbearnowdepends on SCHED_CHILD_STATUS(per thedepends-on-over-select policy, apache/nuttx-apps#3648), so enable it in the sim
and esp32c3-devkit Dropbear defconfigs.
SCHED_HAVE_PARENTis already enabledthere (#19474).
Impact
Two Dropbear defconfigs, one line each. Companion to apache/nuttx-apps#3648 —
merge this first so that PR's CI passes.
Testing
sim:dropbearandesp32c3-devkit:dropbearconfigure with a validSCHED_HAVE_PARENT=y+SCHED_CHILD_STATUS=yand passsavedefconfignormalization (no diff).