Mercurial > public > mercurial-scm > hg-stable
diff mercurial/configitems.py @ 37848:8c828beb7543 stable
lock: add internal config to not replace signal handlers while locking
signal.signal() is blocked in some WSGI environments, and a horrible warning
is sent to the server log. So we need a way to disable it, and I think
abusing ui.config is the simplest workaround.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 18 May 2018 21:24:06 +0900 |
parents | 6a7ff5816c5f |
children | ead71b15efd5 |
line wrap: on
line diff
--- a/mercurial/configitems.py Tue May 22 21:51:20 2018 -0400 +++ b/mercurial/configitems.py Fri May 18 21:24:06 2018 +0900 @@ -1127,6 +1127,9 @@ coreconfigitem('ui', 'rollback', default=True, ) +coreconfigitem('ui', 'signal-safe-lock', + default=True, +) coreconfigitem('ui', 'slash', default=False, )