[LTP] [PATCH v3 12/12] hotplug/cpu_hotplug: Remove bashism disown from kill_pid()
Punit Agrawal
punit.agrawal@arm.com
Mon Dec 4 17:36:55 CET 2017
From: James Morse <james.morse@arm.com>
disown is a bashism not present in dash. kill_pid() already sends the
process SIGKILL.
Remove the "disown" to allow running in shells that don't support
disown.
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Punit Agrawal <punit.agrawal@arm.com>
---
testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_testsuite.sh | 1 -
1 file changed, 1 deletion(-)
diff --git a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_testsuite.sh b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_testsuite.sh
index 2d0166cc6..7dd0ebaae 100644
--- a/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_testsuite.sh
+++ b/testcases/kernel/hotplug/cpu_hotplug/include/cpuhotplug_testsuite.sh
@@ -74,7 +74,6 @@ pid_is_valid()
kill_pid()
{
PID=$1
- disown $PID
kill -9 $PID > /dev/null 2>&1
}
--
2.15.0
More information about the ltp
mailing list