From 17a4ed9029421bde84042d8e37d78a9ca043ca26 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 3 Apr 2019 17:10:31 +0200 Subject: 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 --- src/osmo_gsm_tester/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3