未验证 提交 54d2916f 编写于 作者: C Caio Carrara

Merge remote-tracking branch 'hsmj1412/minorfix1'

Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
......@@ -134,8 +134,8 @@ def safe_kill(pid, signal): # pylint: disable=W0621
:param signal: Signal number.
"""
if get_owner_id(pid) == 0:
kill_cmd = 'kill -%d %d' % (int(signal), pid)
if get_owner_id(int(pid)) == 0:
kill_cmd = 'kill -%d %d' % (int(signal), int(pid))
try:
run(kill_cmd, sudo=True)
return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册