From 9059aa3d3971efe662c546a1792ba0377a2cafc0 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Thu, 12 Mar 2020 22:47:03 +0000 Subject: [PATCH] local-atfork-link This is only a quickfix for 2.30, 2.31 will link files differently. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name local-atfork-link.diff --- sysdeps/mach/hurd/htl/pt-sysdep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysdeps/mach/hurd/htl/pt-sysdep.c b/sysdeps/mach/hurd/htl/pt-sysdep.c index c31640370..385718bad 100644 --- a/sysdeps/mach/hurd/htl/pt-sysdep.c +++ b/sysdeps/mach/hurd/htl/pt-sysdep.c @@ -25,6 +25,7 @@ #include #include +#include __thread struct __pthread *___pthread_self; @@ -85,7 +86,7 @@ _init_routine (void *stack) when we return from here) shouldn't be seen as a user thread. */ __pthread_total--; - __pthread_atfork (NULL, NULL, reset_pthread_total); + __register_atfork (NULL, NULL, reset_pthread_total, __dso_handle); /* Make MiG code thread aware. */ __mig_init (thread->stackaddr); -- 2.30.2