aboutsummaryrefslogtreecommitdiff
path: root/mach/mach_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'mach/mach_init.c')
-rw-r--r--mach/mach_init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mach/mach_init.c b/mach/mach_init.c
index d7fb7eb..6237e9c 100644
--- a/mach/mach_init.c
+++ b/mach/mach_init.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -35,6 +35,10 @@ __mach_init (void)
{
kern_return_t err;
+ if (__mach_host_self_)
+ /* Already initialized. */
+ return;
+
__mach_task_self_ = (__mach_task_self) ();
__mach_host_self_ = (__mach_host_self) ();
__mig_init (0);