def pid_exists(pid):
    if pid < 0:
        return False
    try:
        os.kill(pid, 0)
    except OSError as e:
        return e.errno == errno.EPERM
    else:
        return True
Initialize the Task with a command, where the command is a string
dataset/ETHPy150Open limodou/uliweb/uliweb/utils/process.py/pid_exists--crossover with--dataset/ETHPy150Open coleifer/irc/botnet/boss.py/Task.__init__