Re: detecting process termination in kernel?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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... 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); This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Macklem