correctly report pid when killing subprocess

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-16 00:49:04 +02:00
parent 84e102eb29
commit 7b770b7b35

View file

@ -150,7 +150,8 @@ def configinstall(args, mode):
except KeyboardInterrupt: except KeyboardInterrupt:
if args.parallel: if args.parallel:
for p in process.keys(): for p in process.keys():
log.warn("Terminating deploy " + p + "(" + p.pid + ")") pid = process[p].pid.__str__()
log.warn("Terminating deploy " + p + " (" + pid + ")")
process[p].terminate() process[p].terminate()
sys.exit(0) sys.exit(0)