summaryrefslogtreecommitdiff
path: root/trans
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-17 10:35:13 +0000
committerRoland McGrath <roland@gnu.org>2000-03-17 10:35:13 +0000
commit59172bab0bbe995e2dc846cd0688785c69c9890c (patch)
tree41299e05a1b27533c7097a4eec4b283b93400d7b /trans
parenta9d955f3346f4bb2e7da9dc039e95cc8c67ac1cd (diff)
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
* crash.c (S_crash_dump_task): Use ports_get_send_right.
Diffstat (limited to 'trans')
-rw-r--r--trans/crash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/trans/crash.c b/trans/crash.c
index 55e7ce92..0a5afe93 100644
--- a/trans/crash.c
+++ b/trans/crash.c
@@ -195,9 +195,7 @@ S_crash_dump_task (mach_port_t port,
/* Install our port as the crasher's msgport.
We will wait for signals to resume (crash) it. */
- msgport = ports_get_right (c);
- mach_port_insert_right (mach_task_self (), msgport,
- msgport, MACH_MSG_TYPE_MAKE_SEND);
+ msgport = ports_get_send_right (c);
err = proc_setmsgport (user_proc, msgport, &c->original_msgport);
mach_port_deallocate (mach_task_self (), msgport);