Page MenuHomePhabricator

When "arc" receives SIGWINCH or other signals during display of a prompt, recover
ClosedPublic

Authored by epriestley on Jun 5 2020, 11:07 PM.
Tags
None
Referenced Files
F21302427: D21317.diff
Thu, Jul 9, 9:45 AM
Unknown Object (File)
Sat, Jul 4, 1:05 PM
Unknown Object (File)
Jun 27 2026, 4:27 AM
Unknown Object (File)
Jun 25 2026, 10:13 AM
Unknown Object (File)
Jun 18 2026, 12:08 AM
Unknown Object (File)
Apr 16 2026, 9:15 PM
Unknown Object (File)
Mar 4 2026, 1:51 PM
Unknown Object (File)
Dec 24 2025, 10:13 AM
Subscribers
None

Details

Summary

Ref T13546. Resizing the terminal window to send SIGWINCH, or other signals, may interrupt "stream_select()" with an error which upgrades to a RuntimeException.

When "stream_select()" fails, continue and test the stream itself.

Test Plan

Waited for a prompt, resized the window. Before patch: SIGWINCH interruption. After patch: undisturbed prompt.

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.Jun 8 2020, 10:57 PM
This revision was automatically updated to reflect the committed changes.