From: Derrick Brashear Date: Tue, 23 Oct 2007 15:31:29 +0000 (+0000) Subject: STABLE14-darwin-afsd-cleanup-power-notification-nicely-20071023 X-Git-Tag: openafs-stable-1_4_5pre5~4 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=db374f6e77011a31c8394d8d43d75d5387f9ebb6;p=packages%2Fo%2Fopenafs.git STABLE14-darwin-afsd-cleanup-power-notification-nicely-20071023 don't drop a core on shutdown (cherry picked from commit 4526c6a4f7e6f627249580cac0ba9373735ae667) --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 752af69c8..776fbc980 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -428,7 +428,7 @@ afsd_event_cleanup(int signo) { CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode); CFRelease (source); - IODeregisterForSystemPower(iterator); + IODeregisterForSystemPower(&iterator); IOServiceClose(root_port); IONotificationPortDestroy(notify);