X-Git-Url: https://git.saurik.com/apple/configd.git/blobdiff_plain/009ee3c6fe2929a4c90ae5c9eb1925573e17956b..441dd19beddb71be6edb0b50e19a89e700a89468:/configd.tproj/notify_server.c diff --git a/configd.tproj/notify_server.c b/configd.tproj/notify_server.c index 4ddc272..7599238 100644 --- a/configd.tproj/notify_server.c +++ b/configd.tproj/notify_server.c @@ -1,10 +1,8 @@ /* - * Copyright (c) 2000-2003 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2004, 2007 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * - * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved. - * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in @@ -32,7 +30,6 @@ #include "configd.h" #include "session.h" -#include "notify.h" __private_extern__ boolean_t @@ -56,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; @@ -73,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;