Re: Power Management / IOKit
Re: Power Management / IOKit
- Subject: Re: Power Management / IOKit
- From: Brian Bergstrand <email@hidden>
- Date: Sat, 13 Sep 2008 12:25:01 +0300
No matter how your app terminates, if you leave dangling resources
they will be cleaned up for you by the kernel. There may be a few
exceptions, but Mach ports (which is what IOKit handles are) are not
one of them.
On Sep 13, 2008, at 4:15 AM, Jason Coco wrote:
Hello all,
I was wondering if anybody knows... if an application registers for
user-level power events and never calls IODeregisterForSystemPower
on the notifier and/or IOServiceClose on the root port, does that
application then keep the computer from properly handling idle sleep
requests? In this case, clean up isn't called because the
application terminates unexpectedly for some reason, but I've
noticed that once this happens the computer will never sleep due to
being idle again. I'm asking on the list because I'm not sure if
this is 1) a bug; 2) expected behavior; or 3) something limited to
my machine. Has anyone experienced anything like this before?
Thanks, Jason _______________________________________________
Brian Bergstrand
<http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden