c++ check if pid is running
bool pid_id_active(pid_t pid) { | |
return kill(pid, 0) == 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bool pid_id_active(pid_t pid) { | |
return kill(pid, 0) == 0; | |
} |