Skip to content

tee: handle short writes to stdout correctly #14981

Description

@mattsu2020

tee does not correctly handle short writes to stdout when stdout is a regular file on Linux.

The GNU tee/short-write.sh test expects short writes to be retried until the remaining data is written, but the current implementation uses the splice path for regular-file stdout, bypassing the injected write(2) short writes.

We should ensure that short writes to regular-file stdout are handled correctly.

Related to #14705.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions