Commit 081ebc39 authored by Yuya Nishihara's avatar Yuya Nishihara

thread: disable spawning worker processes of Mercurial 2.6

Because our command runner is thread-based, it cannot go along with POSIX
signals. So the parallelization is disabled for now.

This change has no effect on Windows.
parent a0feb800963c
......@@ -273,6 +273,10 @@ class CmdThread(QThread):
for k, v in ui.configitems('defaults'):
ui.setconfig('defaults', k, '')
# disable worker because it only works in main thread:
# signal.signal(signal.SIGINT, signal.SIG_IGN)
# ValueError: signal only works in main thread
ui.setconfig('worker', 'numcpus', 1)
self.ret = 255
self.ret = hglib.dispatch(ui, self.cmdline) or 0
except _SubrepoAbort, e:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment