Re: Process Exit Notification within KEXT
Re: Process Exit Notification within KEXT
- Subject: Re: Process Exit Notification within KEXT
- From: Maxim Zhuravlev <email@hidden>
- Date: Sat, 27 Feb 2010 20:00:30 +0300
Hi, Dave
the answer depends on the way your daemon connects to the kext. If you
choose IOUserClient, you should override IOUserClient::clientDied()
call. In case of connection through kernel control socket the kext
will recieve disconnect event on that socket.
2010/2/27 Dave Keck <email@hidden>:
> My problem is that of robustness: should the daemon crash, ideally the
> KEXT would notice and tear down the resources that it held.
> Unfortunately I'm not sure it's possible for a KEXT to be notified
> when a process exits. I'm pretty certain it's impossible using the BSD
> kernel KPIs, but perhaps there's a way with the Mach ones?
_______________________________________________
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