

def kill_process(process):
    '\n    Kill the provided process by sending it TERM signal using "pkill" shell\n    command.\n\n    Note: This function only works on Linux / Unix based systems.\n\n    :param process: Process object as returned by subprocess.Popen.\n    :type process: ``object``\n    '
    kill_command = shlex.split(('sudo pkill -TERM -s %s' % process.pid))
    try:
        status = subprocess.call(status)
    except Exception:
        LOG.exception('Unable to pkill process.')
    return status

dataset/ETHPy150Open StackStorm/st2/st2common/st2common/util/shell.py kill_process/VarMisuse@37/157 `kill_command`->`status`