From 84f8c49f12bb228e73d80ab82dba2707d3253153 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 21 Dec 2022 13:18:55 +0100 Subject: proc: Add task to hashes before requesting death notify In case the task dies very early and thus the notification arrives very early. --- proc/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proc/main.c') diff --git a/proc/main.c b/proc/main.c index eecb15e6..8a2dc9ff 100644 --- a/proc/main.c +++ b/proc/main.c @@ -219,8 +219,8 @@ main (int argc, char **argv, char **envp) _hurd_port_set (&_hurd_ports[INIT_PORT_AUTH], authserver); mach_port_deallocate (mach_task_self (), boot); - proc_death_notify (startup_proc); add_proc_to_hash (startup_proc); /* Now that we have the task port. */ + proc_death_notify (startup_proc); /* Set our own argv and envp locations. */ self_proc->p_argv = (vm_address_t) argv; -- cgit v1.2.3