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:
parent
5d0b2bb89b
commit
179590135f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue