From ff2557c4eca55f46a3fb2b9c88147963d3f8b4a3 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Sun, 21 Feb 2016 18:34:22 +0100 Subject: trans/crash: fix suspending task * trans/crash.c (S_crash_dump_task): Fix looking up 'user_proc'. --- trans/crash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trans/crash.c b/trans/crash.c index 23f2a2d6..9279bab9 100644 --- a/trans/crash.c +++ b/trans/crash.c @@ -186,7 +186,7 @@ S_crash_dump_task (mach_port_t port, if (err) break; - if (user_proc != MACH_PORT_NULL) + if (! MACH_PORT_VALID (user_proc)) err = proc_task2proc (procserver, task, &user_proc); if (! err) { -- cgit v1.2.3