aboutsummaryrefslogtreecommitdiff
path: root/proc/main.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-21 13:18:55 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-21 13:21:44 +0100
commit84f8c49f12bb228e73d80ab82dba2707d3253153 (patch)
tree7403f72649341b4f93f712c0e86f3f8c6eb3145d /proc/main.c
parentc644533e2a8cd395997609f7e33b1e38c27e40f0 (diff)
downloadhurd-84f8c49f12bb228e73d80ab82dba2707d3253153.tar.gz
hurd-84f8c49f12bb228e73d80ab82dba2707d3253153.tar.bz2
hurd-84f8c49f12bb228e73d80ab82dba2707d3253153.zip
proc: Add task to hashes before requesting death notify
In case the task dies very early and thus the notification arrives very early.
Diffstat (limited to 'proc/main.c')
-rw-r--r--proc/main.c2
1 files changed, 1 insertions, 1 deletions
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;