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
F15407768: D21317.id.diff
Tue, Mar 18, 7:27 PM
F15390439: D21317.id50745.diff
Sat, Mar 15, 6:12 AM
Unknown Object (File)
Fri, Feb 21, 7:47 PM
Unknown Object (File)
Feb 17 2025, 10:41 PM
Unknown Object (File)
Feb 12 2025, 8:55 PM
Unknown Object (File)
Feb 12 2025, 8:55 PM
Unknown Object (File)
Feb 12 2025, 12:42 AM
Unknown Object (File)
Feb 9 2025, 9:27 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
Branch
land14
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24567
Build 33863: Run Core Tests
Build 33862: arc lint + arc unit

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.