summaryrefslogtreecommitdiff
path: root/lib/libc/arch/hppa64/sys/fork.S
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-04-07 01:27:08 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-04-07 01:27:08 +0000
commit88c62139002b1fec001c04b3594a04d1bbfb1342 (patch)
tree0509c1476b98d3b86a67ed3837dd2dd5f29944de /lib/libc/arch/hppa64/sys/fork.S
parent1e37072b7b75ac23dc21e9d893b197aab716875c (diff)
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/hppa64/sys/fork.S')
-rw-r--r--lib/libc/arch/hppa64/sys/fork.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/arch/hppa64/sys/fork.S b/lib/libc/arch/hppa64/sys/fork.S
index ce870ec4024..7602c801601 100644
--- a/lib/libc/arch/hppa64/sys/fork.S
+++ b/lib/libc/arch/hppa64/sys/fork.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fork.S,v 1.5 2015/03/31 04:32:01 guenther Exp $ */
+/* $OpenBSD: fork.S,v 1.6 2015/04/07 01:27:06 guenther Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -28,4 +28,5 @@
#include "SYS.h"
-RSYSCALL(fork)
+RSYSCALL_HIDDEN(fork)
+WEAK_ALIAS(_thread_fork,_thread_sys_fork)