From db374f6e77011a31c8394d8d43d75d5387f9ebb6 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 23 Oct 2007 15:31:29 +0000 Subject: [PATCH] STABLE14-darwin-afsd-cleanup-power-notification-nicely-20071023 don't drop a core on shutdown (cherry picked from commit 4526c6a4f7e6f627249580cac0ba9373735ae667) --- src/afsd/afsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 752af69c83..776fbc980a 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);