Change in osmo-gsm-tester[master]: process: add signal to NetNSProcess kill path

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.org
Thu Apr 4 10:46:04 UTC 2019


Pau Espin Pedrol has submitted this change and it was merged. ( https://gerrit.osmocom.org/13509 )

Change subject: process: add signal to NetNSProcess kill path
......................................................................

process: add signal to NetNSProcess kill path

This allows to easily differentiate different calls to kill in order to
terminate the process when looking at the logs.

Change-Id: Ida88f2674b0ed1802f20c519aa4e3cbe81e0def8
---
M src/osmo_gsm_tester/process.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  Pau Espin Pedrol: Looks good to me, approved



diff --git a/src/osmo_gsm_tester/process.py b/src/osmo_gsm_tester/process.py
index a104e10..7ecb67e 100644
--- a/src/osmo_gsm_tester/process.py
+++ b/src/osmo_gsm_tester/process.py
@@ -364,7 +364,7 @@
     # This function is overwritten from Process.
     def send_signal(self, sig):
         kill_cmd = ('kill', '-%d' % int(sig), str(self.process_obj.pid))
-        run_local_netns_sync(self.run_dir, self.name()+"-kill", self.netns, kill_cmd)
+        run_local_netns_sync(self.run_dir, self.name()+"-kill"+str(sig), self.netns, kill_cmd)
 
 
 def run_local_sync(run_dir, name, popen_args):

-- 
To view, visit https://gerrit.osmocom.org/13509
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gsm-tester
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ida88f2674b0ed1802f20c519aa4e3cbe81e0def8
Gerrit-Change-Number: 13509
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190404/c3b30283/attachment.htm>


More information about the gerrit-log mailing list