Check that a task structure is not stale
int pid_alive(const struct task_struct * p);
p
Task structure to be checked.
Test if a process is not yet dead (at most zombie state) If pid_alive fails, then pointers within the task structure can be stale and must not be dereferenced.
1 if the process is alive. 0 otherwise.