Skip to content
Snippets Groups Projects
Commit 074fd0fd authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

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 a0feb800
No related branches found
No related tags found
No related merge requests found
......@@ -273,6 +273,10 @@
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment