summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ipc/mach_port.c4
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;