• 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 16:04:11 +0300

We have shipping apps that open a power event notification at launch and then never close it with no problems. Have you tried to reproduce this on clean install of OS X?

You can always open a bug with Apple, attach your sample code and see what they think.

On Sep 13, 2008, at 12:34 PM, Jason Coco wrote:


On Sep 13, 2008, at 05:25 , Brian Bergstrand wrote:

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.

I thought as much, but it seems strange to me that in this case, the computer will no longer go to sleep due to being idle. I've tested it with a simple terminal program. If I interrupt the run loop (^C for example or SIGTERM) and don't call IODeregisterForSystemPower() the computer simply will not sleep again until it's been rebooted. If anyone else could test this, I'd really appreciate it... it seems like a bug but I only have my hardware at the moment to test on and there may be something wrong with that.


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


References: 
 >Power Management / IOKit (From: Jason Coco <email@hidden>)
 >Re: Power Management / IOKit (From: Brian Bergstrand <email@hidden>)
 >Re: Power Management / IOKit (From: Jason Coco <email@hidden>)

  • Prev by Date: Re: Power Management / IOKit
  • Next by Date: GNU assembler freaks out at jumps and Intel syntax
  • Previous by thread: Re: Power Management / IOKit
  • Next by thread: Re: Power Management / IOKit
  • Index(es):
    • Date
    • Thread