STABLE14-darwin-afsd-cleanup-power-notification-nicely-20071023

don't drop a core on shutdown


(cherry picked from commit 4526c6a4f7e6f627249580cac0ba9373735ae667)
This commit is contained in:
Derrick Brashear 2007-10-23 15:31:29 +00:00
parent 07f85591da
commit db374f6e77

View File

@ -428,7 +428,7 @@ afsd_event_cleanup(int signo) {
CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode); CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
CFRelease (source); CFRelease (source);
IODeregisterForSystemPower(iterator); IODeregisterForSystemPower(&iterator);
IOServiceClose(root_port); IOServiceClose(root_port);
IONotificationPortDestroy(notify); IONotificationPortDestroy(notify);