summaryrefslogtreecommitdiff
path: root/trans/crash.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-08 04:54:09 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-08 04:54:09 +0000
commit4e4028566c6dfb75b58850a301c56343b7b13adc (patch)
tree56c3935bffad07afee02e5cb4e91fd519a8bc116 /trans/crash.c
parent2c73aa383dd7a5e55609779d9aad0c6dc1dcca17 (diff)
(S_crash_dump_task): fixup
Diffstat (limited to 'trans/crash.c')
-rw-r--r--trans/crash.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/trans/crash.c b/trans/crash.c
index 812f587d..d656e971 100644
--- a/trans/crash.c
+++ b/trans/crash.c
@@ -137,11 +137,13 @@ S_crash_dump_task (mach_port_t port,
sizeof *c, &c);
if (! err)
{
+ mach_port_t msgport;
+
stop_pgrp (user_proc);
/* Install our port as the crasher's msgport.
We will wait for signals to resume (crash) it. */
- mach_port_t msgport = ports_get_right (c);
+ msgport = ports_get_right (c);
mach_port_insert_right (mach_task_self (), msgport,
msgport, MACH_MSG_TYPE_MAKE_SEND);
err = proc_setmsgport (user_proc, msgport, &c->original_msgport);