diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-12-22 21:38:15 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-12-22 21:44:25 +0100 |
commit | 6044a9e9a4faa4d28a0c16e30c166c39fc57198d (patch) | |
tree | 7f1e135293e64733565505eb9fbadd972a2d6211 | |
parent | ab6c686d71a3cd13e0c798a7b38c7acc75609beb (diff) |
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.
-rw-r--r-- | ipc/mach_port.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |