diff options
Diffstat (limited to 'proc')
-rw-r--r-- | proc/msg.c | 10 | ||||
-rw-r--r-- | proc/stubs.c | 2 |
2 files changed, 8 insertions, 4 deletions
@@ -35,11 +35,13 @@ check_message_return (struct proc *p, void *availpaddr) } } -/* Register ourselves with statup. */ +/* Register ourselves with startup. */ static void * -tickle_statup (void *statupport) +tickle_startup (void *startupport) { - startup_essential_task ((mach_port_t) (uintptr_t) statupport, + pthread_setname_np (pthread_self (), "startup"); + + startup_essential_task ((mach_port_t) (uintptr_t) startupport, mach_task_self (), MACH_PORT_NULL, "proc", _hurd_host_priv); return NULL; @@ -70,7 +72,7 @@ S_proc_setmsgport (struct proc *p, the essential task RPC; spawn a thread to do it. */ pthread_t thread; error_t err; - err = pthread_create (&thread, NULL, tickle_statup, + err = pthread_create (&thread, NULL, tickle_startup, (void*) (uintptr_t) msgport); if (!err) pthread_detach (thread); diff --git a/proc/stubs.c b/proc/stubs.c index 0b4a2cea..318dc0ba 100644 --- a/proc/stubs.c +++ b/proc/stubs.c @@ -47,6 +47,8 @@ blocking_message_send (void *arg) struct msg_sig_post_request *const req = arg; error_t err; + pthread_setname_np (pthread_self (), "message_send"); + err = mach_msg (&req->head, MACH_SEND_MSG, sizeof *req, 0, MACH_PORT_NULL, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |