Skip to content

Instantly share code, notes, and snippets.

@jdxcode

jdxcode/context.cpp

Last active May 4, 2020
Embed
What would you like to do?
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