Re: detecting process termination in kernel?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Tue, 1 Apr 2008, Quinn wrote: 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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). This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Macklem