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

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Wed Apr 3 15:11:25 UTC 2019


Pau Espin Pedrol has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/09/13509/1

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: newchange
Gerrit-Change-Id: Ida88f2674b0ed1802f20c519aa4e3cbe81e0def8
Gerrit-Change-Number: 13509
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/20190403/dab7ed92/attachment.html>


More information about the gerrit-log mailing list