Skip to content

x/crypto/ssh: data race if session.Stdout and Stderr are the same writer #5582

Closed
@davecheney

Description

@davecheney
https://golang.org/cl/9711043/ identified that the ssh package does not handle
the case where the Stdout and Stderr point to the same writer, as in the case of the
CombinedOutput() helper function.

This was worker around by introducing a blocking wrapper, however the proper solution is
to handle this common case the way os/exec handles it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions