D-Bus testing: avoid extranuous message about SIGTERM

The message was printed also when there were no children to kill
that way. Now also include the process list of hanging children.
This commit is contained in:
Patrick Ohly 2013-02-12 08:50:32 +01:00
parent 5d0b2bb89b
commit 179590135f
1 changed files with 2 additions and 1 deletions

View File

@ -770,7 +770,8 @@ Use check=lambda: (expr1, expr2, ...) when more than one check is needed.
# Force killing of remaining children. It's still possible
# that one of them quits before we get around to sending the
# signal.
logging.printf("starting to kill unresponsive processes at %s", time.asctime())
if children:
logging.printf("starting to kill unresponsive processes at %s: %s", time.asctime(), str(children))
killed = []
for pid, name in children.iteritems():
if TryKill(pid, signal.SIGKILL):