Re: Process Exit Notification within KEXT
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=c8fAF6Zygjph/+GCWr2FBtVX1uVJbPoZVScUC934W1o=; b=vOfHlrs1pmVYCJYtKjmlmdjMH1S4gMgVHO2n+670U4wO+RCL//fMe6PPwiC/KqUoUf pEKukT5owbJ3RQi2OHlR546v7hWHHBeFFVochKdo+kTSa8ha0A4mZQr7SUye+7LIh3Rz 7nUtGEWAf0EPRgYBYLVST8MVN/vaP+9i/eZyk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Hwbv+8sAHULVnOnKbPsfDS3vllFRm0y945IfI6/K4z995KTvYFvBv/Dal+i44nHoLb HTSFW9Wfs3iKg9eozgBgoD9iQk9GbEIQOt3+x1YqWqp3M7KYKKtrIeRpa6He6GI5wdC3 cKRlUfUH+t50bQNP7kZ59n5ZD12IFa8ewlbw4= 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 <davekeck@gmail.com>:
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Maxim Zhuravlev