• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Power Management / IOKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Power Management / IOKit
      • From: Jason Coco <email@hidden>
References: 
 >Power Management / IOKit (From: Jason Coco <email@hidden>)

  • Prev by Date: Power Management / IOKit
  • Next by Date: Re: Power Management / IOKit
  • Previous by thread: Power Management / IOKit
  • Next by thread: Re: Power Management / IOKit
  • Index(es):
    • Date
    • Thread