summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-02-21 18:34:22 +0100
committerJustus Winter <justus@gnupg.org>2016-02-21 18:35:11 +0100
commitff2557c4eca55f46a3fb2b9c88147963d3f8b4a3 (patch)
treee184a26f5fded46267440df8f8ccaf5a18a57110 /trans
parent691251adb7a1eaae7eda7601a1f05d4ff819dd64 (diff)
trans/crash: fix suspending task
* trans/crash.c (S_crash_dump_task): Fix looking up 'user_proc'.
Diffstat (limited to 'trans')
-rw-r--r--trans/crash.c2
1 files changed, 1 insertions, 1 deletions
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)
{