Page MenuHomePhabricator

Avoid leaving stdin in nonblocking mode after a modern prompt
ClosedPublic

Authored by epriestley on May 30 2021, 8:31 AM.
Tags
None
Referenced Files
F19549963: D21666.diff
Tue, Jan 27, 3:54 PM
F19489757: D21666.diff
Jan 8 2026, 6:04 AM
F19306817: D21666.id51561.diff
Dec 24 2025, 6:09 PM
F19046903: D21666.id.diff
Nov 27 2025, 11:57 AM
F18916490: D21666.diff
Nov 9 2025, 8:54 AM
F18859153: D21666.id.diff
Nov 2 2025, 12:19 AM
F18854905: D21666.diff
Nov 1 2025, 12:55 AM
F18852265: D21666.id.diff
Oct 31 2025, 7:45 AM
Subscribers
None

Details

Summary

Ref T13649. Currently, "arc" may leave stdin nonblocking after showing a prompt. This can cause various odd behaviors down the line.

I can't immediately reproduce this behavior on macOS in "zsh" or "bash" (I'm unable to get stdin to remain nonblocking beyond the process lifespan), and also don't have pcntl locally so there's a fair amount of handwaving here.

Test Plan

This is somewhat speculative since I can't immediately reproduce the behavior. I tested the locally-reachable paths (no pcntl) but they're not interesting.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 30 2021, 8:31 AM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.