diff options
author | 2015-04-07 01:27:06 +0000 | |
---|---|---|
committer | 2015-04-07 01:27:06 +0000 | |
commit | 514a545f8a3983d53b7de4e8dfcefe16c9496776 (patch) | |
tree | e17cf0966466dfd49a1decf34dd536d3fdbe4765 /lib/libc/arch/amd64/sys | |
parent | Do not mistreat empty arguments to font alternating macros (diff) | |
download | wireguard-openbsd-514a545f8a3983d53b7de4e8dfcefe16c9496776.tar.xz wireguard-openbsd-514a545f8a3983d53b7de4e8dfcefe16c9496776.zip |
Make pthread_atfork() track the DSO that called it like atexit() does,
unregistering callbacks if the DSO is unloaded. Move the callback
handling from libpthread to libc, though libpthread still overrides the
inner call to handle locking and thread-library reinitialization.
Major version bump for both libc and libpthread.
verification that this fixes various ports ajacoutot@
asm assistance miod@; ok millert@ deraadt@
Diffstat (limited to 'lib/libc/arch/amd64/sys')
-rw-r--r-- | lib/libc/arch/amd64/sys/fork.S | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/amd64/sys/fork.S b/lib/libc/arch/amd64/sys/fork.S index d0a2ea33178..6582d8a9a32 100644 --- a/lib/libc/arch/amd64/sys/fork.S +++ b/lib/libc/arch/amd64/sys/fork.S @@ -1,4 +1,4 @@ -/* $OpenBSD: fork.S,v 1.3 2015/03/31 04:32:01 guenther Exp $ */ +/* $OpenBSD: fork.S,v 1.4 2015/04/07 01:27:06 guenther Exp $ */ /* $NetBSD: fork.S,v 1.2 2003/02/13 02:50:51 nathanw Exp $ */ /*- @@ -39,4 +39,5 @@ #include "SYS.h" -RSYSCALL(fork) +RSYSCALL_HIDDEN(fork) +WEAK_ALIAS(_thread_fork,_thread_sys_fork) |