W/o this fix, the command "proc_kill pid name count" will misplace
the passed count of tries as the signal name for the pkill, which
is wrong and might be unpredictably harmful for the proces group
containing the given pid.
The fix is to correctly specify params for the proc_kill calls.
Add bats tests for the proc_kill as well.
Reviewed: https:/ /review. openstack. org/262043 /git.openstack. org/cgit/ openstack/ fuel-library/ commit/ ?id=d961691e5fa 7ba49305e35a4c1 7de09b2dae2eb6
Committed: https:/
Submitter: Jenkins
Branch: master
commit d961691e5fa7ba4 9305e35a4c17de0 9b2dae2eb6
Author: Bogdan Dobrelya <email address hidden>
Date: Mon Dec 28 18:06:38 2015 +0100
Fix the proc_kill ocf helper func
W/o this fix, the command "proc_kill pid name count" will misplace
the passed count of tries as the signal name for the pkill, which
is wrong and might be unpredictably harmful for the proces group
containing the given pid.
The fix is to correctly specify params for the proc_kill calls.
Add bats tests for the proc_kill as well.
Closes-bug: #1528889
Change-Id: I992480f4e0d338 0215d3f8bd91055 3070334c343
Signed-off-by: Bogdan Dobrelya <email address hidden>