comparison mercurial/configitems.py @ 45057: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
comparison
equal deleted inserted replaced
45056:9694895749ad 45057:d6e99a446eea
210 b'cmdserver', 210 b'cmdserver',
211 b'track-log', 211 b'track-log',
212 default=lambda: [b'chgserver', b'cmdserver', b'repocache'], 212 default=lambda: [b'chgserver', b'cmdserver', b'repocache'],
213 ) 213 )
214 coreconfigitem( 214 coreconfigitem(
215 b'cmdserver', b'shutdown-on-interrupt', default=True,
216 )
217 coreconfigitem(
215 b'color', b'.*', default=None, generic=True, 218 b'color', b'.*', default=None, generic=True,
216 ) 219 )
217 coreconfigitem( 220 coreconfigitem(
218 b'color', b'mode', default=b'auto', 221 b'color', b'mode', default=b'auto',
219 ) 222 )