summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c
index 0fc64c40..d6109a33 100644
--- a/init/init.c
+++ b/init/init.c
@@ -887,6 +887,9 @@ S_startup_request_notification (mach_port_t server,
if (prev != MACH_PORT_NULL)
mach_port_deallocate (mach_task_self (), prev);
+ /* Note that the ntfy_tasks list is kept in inverse order of the
+ calls; this is important. We need later notification requests
+ to get executed first. */
nt = malloc (sizeof (struct ntfy_task));
nt->notify_port = notify;
nt->next = ntfy_tasks;