From 8149fcf3fd75b583e5b1d10ecd4014695f2486f2 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 5 May 2020 19:12:38 +0100 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