Skip to content

bug(exec): sandbox exec fails with exit 74 after ~30 s when a background child keeps stdout open #4641

Closed as not planned

Description

@delgadof

Problem

If a command run with openshell sandbox exec leaves a background child holding stdout or stderr, the exec waits about 30 s and then fails with exit 74, "exec output could not be delivered intact", although the command itself succeeded. Busybox wget over HTTPS hits this, because its TLS helper ssl_client outlives wget.

Reproduce (v0.1.4)

openshell sandbox exec mybox --no-tty -- sh -c 'sleep 60 & echo started'
echo $?   # 74, after ~30 s

Workaround

Detach the child's stdio: sh -c 'sleep 60 </dev/null >/dev/null 2>&1 & echo started'.

Proposal

Return when the main command exits, and report output truncation separately from command failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:triage-neededOpened without agent diagnostics and needs triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions