]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-darwin-afsd-cleanup-power-notification-nicely-20071023
authorDerrick Brashear <shadow@dementia.org>
Tue, 23 Oct 2007 15:31:29 +0000 (15:31 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 23 Oct 2007 15:31:29 +0000 (15:31 +0000)
don't drop a core on shutdown

(cherry picked from commit 4526c6a4f7e6f627249580cac0ba9373735ae667)

src/afsd/afsd.c

index 752af69c834870e9af00c65d594425ddb0e5b45f..776fbc980ae44fb0ae834e922190445b6baf6768 100644 (file)
@@ -428,7 +428,7 @@ afsd_event_cleanup(int signo) {
 
     CFRunLoopRemoveSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
     CFRelease (source);
-    IODeregisterForSystemPower(iterator);
+    IODeregisterForSystemPower(&iterator);
     IOServiceClose(root_port);
     IONotificationPortDestroy(notify);