Mercurial > public > mercurial-scm > hg-stable
diff mercurial/configitems.py @ 45058:d6e99a446eea
cmdserver: add option to not exit from message loop on SIGINT
Sending SIGINT to server is the only way to interrupt a command running in
command-server process. SIGINT will be caught at dispatch.dispatch() if
we're lucky. Otherwise it will terminate the serer process. This is
fundamentally unreliable as signals are delivered asynchronously.
"cmdserver.shutdown-on-interrupt=False" mitigate the issue by making the
server basically block SIGINT.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 27 Jun 2020 21:46:23 +0900 |
parents | 24b1a8eb73aa |
children | f43bc4ce0d69 |
line wrap: on
line diff
--- a/mercurial/configitems.py Mon Jul 06 17:51:18 2020 +0200 +++ b/mercurial/configitems.py Sat Jun 27 21:46:23 2020 +0900 @@ -212,6 +212,9 @@ default=lambda: [b'chgserver', b'cmdserver', b'repocache'], ) coreconfigitem( + b'cmdserver', b'shutdown-on-interrupt', default=True, +) +coreconfigitem( b'color', b'.*', default=None, generic=True, ) coreconfigitem(