[PATCH 09 of 11] worker: allow a function to be run in multiple worker processes
Isaac Jurado
diptongo at gmail.com
Sat Feb 9 09:39:18 CST 2013
Replying Bryan O'Sullivan:
>
> + def cleanup():
> + # python 2.4 is too dumb for try/yield/finally
> + signal.signal(signal.SIGINT, oldhandler)
> + problems = 0
> + for i in xrange(_numworkers):
> + problems |= os.wait()[1]
> + if problems:
> + sys.exit(1)
A curiosity. Wouldn't this terminate the command server too? Maybe
it's too soon to ask.
Cheeres.
--
Isaac Jurado
"The noblest pleasure is the joy of understanding."
Leonardo da Vinci
More information about the Mercurial-devel
mailing list