Will sleep/wake notification handles close themselves at process termination?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Julian Hsiao