From: Derrick Brashear Date: Tue, 23 Oct 2007 15:28:22 +0000 (+0000) Subject: darwin-afsd-cleanup-power-notification-nicely-20071023 X-Git-Tag: BP-openafs-windows-kdfs-ifs~421 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=4526c6a4f7e6f627249580cac0ba9373735ae667;p=packages%2Fo%2Fopenafs.git darwin-afsd-cleanup-power-notification-nicely-20071023 don't drop a core on shutdown --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 6ee26156c..9c8ed2acf 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -430,7 +430,7 @@ afsd_event_cleanup(int signo) { CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode); CFRelease (source); - IODeregisterForSystemPower(iterator); + IODeregisterForSystemPower(&iterator); IOServiceClose(root_port); IONotificationPortDestroy(notify);