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
Unknown Object (File)
Sun, Apr 21, 3:49 AM
Unknown Object (File)
Sat, Apr 20, 5:17 PM
Unknown Object (File)
Thu, Apr 11, 9:38 AM
Unknown Object (File)
Fri, Mar 29, 8:30 AM
Unknown Object (File)
Mar 3 2024, 2:00 PM
Unknown Object (File)
Feb 28 2024, 4:52 PM
Unknown Object (File)
Feb 19 2024, 3:17 AM
Unknown Object (File)
Feb 10 2024, 11:52 PM
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.