• 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
Will sleep/wake notification handles close themselves at process termination?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Will sleep/wake notification handles close themselves at process termination?


  • Subject: Will sleep/wake notification handles close themselves at process termination?
  • From: Julian Hsiao <email@hidden>
  • Date: Tue, 23 Nov 2010 12:18:04 +0800

I'm writing a very simple program that processes sleep/wake notifications based on the sample codes in QA1340, and I'm wondering if I don't call IODeregisterForSystemPower(), IOServiceClose(), and IONotificationPortDestroy() before exiting, will I leak kernel resources?  And if clean up is not optional, is there a way to "name" the handles so that if my program terminated abnormally, I can still clean up the leaks afterward?

Thanks. _______________________________________________
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: Will sleep/wake notification handles close themselves at process termination?
      • From: Soren Spies <email@hidden>
  • Prev by Date: Re: is it possible to find the target OS version from the binary?
  • Next by Date: Re: Will sleep/wake notification handles close themselves at process termination?
  • Previous by thread: Re: is it possible to find the target OS version from the binary?
  • Next by thread: Re: Will sleep/wake notification handles close themselves at process termination?
  • Index(es):
    • Date
    • Thread