contrib/python-zstandard/tests/__init__.py
author Jun Wu <quark@fb.com>
Tue, 11 Apr 2017 18:31:40 -0700
changeset 31890 ca7af5d15b21
parent 30444 b86a448a2965
permissions -rw-r--r--
chg: always wait for pager Previously, when runcommand raises, chg aborts with, and does not wait for pager. The call stack is like: hgc_runcommand -> handleresponse -> readchannel -> debugmsg("failed to read channel") -> exit(255) That means, chg returns to the shell, then both the pager and the shell will read from the terminal at the same time, causing problems. This patch fixes that by using "atexit" to register the pager cleanup function so chg will always wait for pager even if runcommand raises.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines: