From: Derrick Brashear Date: Tue, 23 Oct 2007 15:29:49 +0000 (+0000) Subject: DEVEL15-darwin-afsd-cleanup-power-notification-nicely-20071023 X-Git-Tag: openafs-devel-1_5_27~52 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8386a7c6bee64ac3ef7827a9595cfba00d6ecd0a;p=packages%2Fo%2Fopenafs.git DEVEL15-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 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);