summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-04-03 17:10:31 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-04-03 17:10:33 +0200
commit17a4ed9029421bde84042d8e37d78a9ca043ca26 (patch)
treec25142ba5e70232e1b01406baa1f3e8b54ca2061
parent9e2ef07e04176c6709b60d8a72ab799610359fd3 (diff)
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
-rw-r--r--src/osmo_gsm_tester/process.py2
1 files changed, 1 insertions, 1 deletions
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 @@ class NetNSProcess(Process):
# 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):