do not need to use terminate()/SIGTERM

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-16 12:04:04 +02:00
parent ede8fd7518
commit dbdf036787

View file

@ -150,9 +150,12 @@ def configinstall(args, mode):
except KeyboardInterrupt:
if args.parallel:
for p in process.keys():
pid = process[p].pid.__str__()
log.warn("Terminating deploy " + p + " (" + pid + ")")
process[p].terminate()
# NOT needed: KeyBoardInterrupet (aka SIGINT)
# is forwarded to processes spawned by multiprocess!
# pid = process[p].pid.__str__()
#log.warn("Terminating deploy " + p + " (" + pid + ")")
# process[p].terminate()
pass
sys.exit(0)
@ -182,6 +185,7 @@ def configinstall_onehost(host, args, mode, parallel):
if not parallel:
raise
else:
# Catch here, above does not need to know about our errors
return False
return True