Skip to content

boards/dropbear: retain child exit status for NSH PTY session#19481

Merged
linguini1 merged 1 commit into
apache:masterfrom
FelipeMdeO:fix/dropbear-defconfigs-child-status
Jul 19, 2026
Merged

boards/dropbear: retain child exit status for NSH PTY session#19481
linguini1 merged 1 commit into
apache:masterfrom
FelipeMdeO:fix/dropbear-defconfigs-child-status

Conversation

@FelipeMdeO

Copy link
Copy Markdown
Contributor

Summary

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
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 (#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:dropbear and esp32c3-devkit:dropbear configure with a valid
SCHED_HAVE_PARENT=y + SCHED_CHILD_STATUS=y and pass savedefconfig
normalization (no diff).

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>
@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Board: risc-v Board: simulator labels Jul 19, 2026
@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@linguini1
linguini1 merged commit f2186e2 into apache:master Jul 19, 2026
53 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Board: risc-v Board: simulator Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants