Will sleep/wake notification handles close themselves at process termination?
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