From 7b770b7b357071cd62746ce0367c5cbacc92469d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 16 Oct 2011 00:49:04 +0200 Subject: [PATCH] correctly report pid when killing subprocess Signed-off-by: Nico Schottelius --- bin/cdist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cdist b/bin/cdist index 650ad853..9786960c 100755 --- a/bin/cdist +++ b/bin/cdist @@ -150,7 +150,8 @@ def configinstall(args, mode): except KeyboardInterrupt: if args.parallel: 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() sys.exit(0)