Re: detecting process termination in kernel?
Re: detecting process termination in kernel?
- Subject: Re: detecting process termination in kernel?
- From: Rick Macklem <email@hidden>
- Date: Tue, 1 Apr 2008 11:52:00 -0400 (EDT)
Oh, and if you do choose to use proc_find(), be sure to deref the proc
structure when it succeeds. (I had a bug in my code where I didn't always
do that and I don't recall exactly what Leopard did, but it wasn't
pretty:-) Your code needs to look something like:
proc_t p;
p = proc_find(pid);
if (p == PROC_NULL)
/* no longer exists or in process (no pun) of exiting */
else
proc_rele(p);
rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden