Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pantsd TTY handling. (Cherry-pick of #16038) #16047

Merged
merged 1 commit into from Jul 4, 2022

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Jul 4, 2022

It turns out STDERR should be opened read+write:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html

Certain programs, like pagers, expect this and fail to operate correctly
if STDERR is open for write only.

Fixes #16028

(cherry picked from commit 844e8ec)

[ci skip-build-wheels]

It turns out STDERR should be opened read+write:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/stdin.html

Certain programs, like pagers, expect this and fail to operate correctly
if STDERR is open for write only.

Fixes pantsbuild#16028

(cherry picked from commit 844e8ec)

[ci skip-build-wheels]
@jsirois jsirois added the category:bugfix Bug fixes for released features label Jul 4, 2022
@jsirois jsirois requested review from benjyw and tdyas July 4, 2022 15:52
@jsirois jsirois merged commit c434495 into pantsbuild:2.12.x Jul 4, 2022
@jsirois jsirois deleted the 16038/cherry-pick/2.12.x branch July 4, 2022 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants