diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-06-25 10:42:52 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-06-25 12:20:47 +0200 |
commit | 2da5f22fff639e891b9f516724683d9d7ad1511c (patch) | |
tree | 89ef1ccd5f2d6d3363704cd03a797f94a9ba9da3 /sysdeps/nptl | |
parent | f66d9abca7ecc4ee4c7afcc1d1496411bfc70911 (diff) | |
download | glibc-2da5f22fff639e891b9f516724683d9d7ad1511c.zip glibc-2da5f22fff639e891b9f516724683d9d7ad1511c.tar.gz glibc-2da5f22fff639e891b9f516724683d9d7ad1511c.tar.bz2 |
Linux: Move mq_notify from librt to libc
The symbol was moved using scripts/move-symbol-to-libc.py.
An explicit call from fork into the mq_notify implementation replaces
the previous use of pthread_atfork.
Reviewed-by: Adhemerva Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/nptl')
-rw-r--r-- | sysdeps/nptl/fork.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/nptl/fork.h b/sysdeps/nptl/fork.h index 3134d7a..1fc3a83 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 |