From 6044a9e9a4faa4d28a0c16e30c166c39fc57198d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 22 Dec 2009 21:38:15 +0100 Subject: Align mach_port_deallocate debug flag with usage * ipc/mach_port.c (debug_mach_port_deallocate): Rename to... (mach_port_deallocate_debug): ... new name, and set volatile to permit live changes from ddb. --- ipc/mach_port.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipc') diff --git a/ipc/mach_port.c b/ipc/mach_port.c index 14afd42..d902e22 100644 --- a/ipc/mach_port.c +++ b/ipc/mach_port.c @@ -590,7 +590,7 @@ mach_port_destroy( * KERN_INVALID_RIGHT The right isn't correct. */ -static int debug_mach_port_deallocate = 0; +static volatile int mach_port_deallocate_debug = 0; kern_return_t mach_port_deallocate( ipc_space_t space, @@ -606,7 +606,7 @@ mach_port_deallocate( if (kr != KERN_SUCCESS) { if (name != MACH_PORT_NULL && name != MACH_PORT_DEAD) { printf("task %p deallocating an invalid port %u, most probably a bug.\n", current_task(), name); - if (debug_mach_port_deallocate) + if (mach_port_deallocate_debug) SoftDebugger("mach_port_deallocate"); } return kr; -- cgit v1.2.3