This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Pau Espin Pedrol gerrit-no-reply at lists.osmocom.orgPau Espin Pedrol has uploaded this change for review. ( https://gerrit.osmocom.org/13527 Change subject: process: Early return during process termination if no proc running ...................................................................... process: Early return during process termination if no proc running This avoids extra unneeded logging about killing with signal when actually no signal is being sent. Change-Id: I5b5dd78fe3301d8eef2ab93da3b37029268ae198 --- M src/osmo_gsm_tester/process.py 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/27/13527/1 diff --git a/src/osmo_gsm_tester/process.py b/src/osmo_gsm_tester/process.py index 441d4ea..66ecae5 100644 --- a/src/osmo_gsm_tester/process.py +++ b/src/osmo_gsm_tester/process.py @@ -104,7 +104,10 @@ time.sleep(wait_step) def terminate_all(self): - self.dbg("Scheduled to terminate %d processes." % len(self._processes)) + num_processes = len(self._processes) + self.dbg("Scheduled to terminate %d processes." % num_processes) + if num_processes == 0: + return self._prune_dead_processes(True) self._build_process_map() @@ -116,6 +119,8 @@ if sig == signal.SIGKILL: continue self._poll_for_termination() + if len(self._processes) == 0: + return class Process(log.Origin): -- To view, visit https://gerrit.osmocom.org/13527 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-gsm-tester Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I5b5dd78fe3301d8eef2ab93da3b37029268ae198 Gerrit-Change-Number: 13527 Gerrit-PatchSet: 1 Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190404/4a160ebe/attachment.htm>