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 10:46:18 -0400 (EDT)
On Tue, 1 Apr 2008, Quinn wrote:
At 23:24 -0400 30/3/08, Greg wrote:
Hi, given several process IDs, what are the different ways of finding out
(being notified, etc), of when a specific PID terminates? I know that
kqueues can be used in userland (with EVFILT PROC), can they be used as
well from a KEXT?
I don't have a good answer for your overall question (alas), but I can
confirm that kqueues are not usable in the kernel (for this or anything
else).
I'm not sure if it's a good answer, but you can probe with proc_find() to
see if the process still exists. I'm also not sure if proc_find() is
considered a kpi call or not? (There are several variants. You can take a
look at them in xnu-1228/bsd/kern/kern_proc.c.)
Good luck with it, 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