1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00
phorge-arcanist/src/utils
epriestley be1a4a9142 Avoid leaving stdin in nonblocking mode after a modern prompt
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.

Maniphest Tasks: T13649

Differential Revision: https://secure.phabricator.com/D21666
2021-05-30 01:33:15 -07:00
..
__tests__ Fix PhutilUTF8TestCase::testUTF8Convert for PHP 8 2021-01-11 04:49:54 +00:00
AbstractDirectedGraph.php Remove final from private functions for PHP 8 compatibility 2021-01-10 22:05:20 +00:00
ArcanistNonblockingGuard.php Avoid leaving stdin in nonblocking mode after a modern prompt 2021-05-30 01:33:15 -07:00
CaseInsensitiveArray.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilArray.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilArrayCheck.php Allow PhutilArrayCheck to accept a list of objects as a context 2020-05-30 03:37:42 -07:00
PhutilArrayWithDefaultValue.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilBufferedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilCallbackFilterIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilChunkedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilCowsay.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilDirectedScalarGraph.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilEditDistanceMatrix.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilExampleBufferedIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilExecutionEnvironment.php Merge utility/support changes from "wilds" to "master" 2020-02-13 14:10:09 -08:00
PhutilHashingIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilLunarPhase.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilProxyIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilRope.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilSortVector.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilStreamIterator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilSystem.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
PhutilUTF8StringTruncator.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00
utf8.php Fix an issue where "phutil_utf8v()" could fatal when passed an integer 2020-10-16 09:22:22 -07:00
utils.php Provide some "preg_*" wrappers which raise exceptions on failure 2021-02-19 11:16:09 -08:00
viewutils.php Fully merge "libphutil/" into "arcanist/" 2020-02-12 15:17:38 -08:00