On Thu, Oct 22, 2009 at 12:26 AM, Leonidas . <leonidas137@xxxxxxxxx> wrote: > What would be an ideal way to check if a process/thread is running or sleeping > or it is dead from kernel space? > > Basically, check whether a process is alive, then determine its status. > > -Leo. > E.g. My module wants to do some cleanup after a thread exits after calling pthread_exit(). The only way my module can know about it by looking in to list of processes but this is not a foolproof since the pid can be recycled. -Leo. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ