From: GNU Libc Maintainers Date: Tue, 5 May 2020 18:12:38 +0000 (+0100) Subject: local-atfork-link X-Git-Tag: archive/raspbian/2.30-7+rpi1^2~55 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8149fcf3fd75b583e5b1d10ecd4014695f2486f2;p=glibc.git 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 --- 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);