Skip to content

vp run: output forwarding fails with EAGAIN when an inherited Node child sets stdout non-blocking #782

Description

@naokihaba

Context

If a write to parent stdout returns WouldBlock (EAGAIN), pipe_stdio fails the task and fast-fail kills the remaining tasks with exit code 137. This still happens even with ensureBlockingStdio() (voidzero-dev/vite-plus#2173), as an uncached task inherits the same stdout where Node sets O_NONBLOCK again after startup.

Reported in voidzero-dev/vite-plus#2824. Follow-up to #506 and #552.

Reproduction

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions