Skip to content

Use socketpairs for stdin #58

Description

@catern

Catching pipe errors when writing to standard input

A straightforward way to avoid this on Unix is to use a socketpair rather than a pipe for sending input to the subprocess. Still use pipes within a pipeline, of course - there, the SIGPIPE behavior is correct. But pipes are optimized for pipelines, and for other communication with a subprocess it's better to use a socketpair.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions