local-atfork-link
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
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

index c3164037088fdcdb0e807525d2c85e8e625797de..385718bad69902fac7f017ba3a98ff118eebf037 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <pt-internal.h>
 #include <pthreadP.h>
+#include <dso_handle.h>
 
 __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);