]> git.saurik.com Git - apple/configd.git/blobdiff - configd.tproj/notify_server.c
configd-293.8.tar.gz
[apple/configd.git] / configd.tproj / notify_server.c
index b914891db5f92a900d27724f83c78424e0a7b5c8..75992381c45c53ddcf82b1bbe65195d047656bc3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2004, 2007 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -30,7 +30,6 @@
 
 #include "configd.h"
 #include "session.h"
-#include "notify.h"
 
 __private_extern__
 boolean_t
@@ -54,14 +53,9 @@ notify_server(mach_msg_header_t *request, mach_msg_header_t *reply)
 
        switch (Request->not_header.msgh_id) {
                case MACH_NOTIFY_NO_SENDERS :
-                       SCLog(_configd_verbose, LOG_DEBUG, CFSTR("No more senders for port %d, closing."),
-                             Request->not_header.msgh_local_port);
+                       __MACH_PORT_DEBUG(TRUE, "*** notify_server MACH_NOTIFY_NO_SENDERS", Request->not_header.msgh_local_port);
                        cleanupSession(Request->not_header.msgh_local_port);
 
-                       (void) mach_port_mod_refs(mach_task_self(),
-                                                Request->not_header.msgh_local_port,
-                                                MACH_PORT_RIGHT_RECEIVE, -1);
-
                        Reply->Head.msgh_bits           = 0;
                        Reply->Head.msgh_remote_port    = MACH_PORT_NULL;
                        Reply->RetCode                  = KERN_SUCCESS;
@@ -71,8 +65,8 @@ notify_server(mach_msg_header_t *request, mach_msg_header_t *reply)
        }
 
        SCLog(_configd_verbose, LOG_DEBUG, CFSTR("HELP!, Received notification: port=%d, msgh_id=%d"),
-              Request->not_header.msgh_local_port,
-              Request->not_header.msgh_id);
+             Request->not_header.msgh_local_port,
+             Request->not_header.msgh_id);
 
        Reply->NDR     = NDR_record;
        Reply->RetCode = MIG_BAD_ID;