about summary refs log tree commit diff
path: root/sysdeps/nptl/fork.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/nptl/fork.h')
-rw-r--r--sysdeps/nptl/fork.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/nptl/fork.h b/sysdeps/nptl/fork.h
index 3134d7ab94..1fc3a83bd3 100644
--- a/sysdeps/nptl/fork.h
+++ b/sysdeps/nptl/fork.h
@@ -22,6 +22,7 @@
 #include <assert.h>
 #include <ldsodefs.h>
 #include <list.h>
+#include <mqueue.h>
 #include <pthreadP.h>
 #include <sysdep.h>
 
@@ -41,6 +42,8 @@ fork_system_setup_after_fork (void)
   /* Initialize thread library locks.  */
   GL (dl_stack_cache_lock) = LLL_LOCK_INITIALIZER;
   __default_pthread_attr_lock = LLL_LOCK_INITIALIZER;
+
+  call_function_static_weak (__mq_notify_fork_subprocess);
 }
 
 /* In case of a fork() call the memory allocation in the child will be