From 2b47727c68b6329cf8890e56fc9dbaa4e7300961 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 18 Jan 2021 15:10:02 -0300 Subject: posix: Consolidate register-atfork Both htl and nptl uses a different data structure to implement atfork handlers. The nptl one was refactored by 27761a1042d to use a dynarray which simplifies the code. This patch moves the nptl one to be the generic implementation and replace Hurd linked one. Different than previous NPTL, Hurd also uses a global lock, so performance should be similar. Checked on x86_64-linux-gnu, i686-linux-gnu, and with a build for i686-gnu. --- sysdeps/htl/pt-atfork.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysdeps/htl/pt-atfork.c') diff --git a/sysdeps/htl/pt-atfork.c b/sysdeps/htl/pt-atfork.c index 3d115d3819..dbb3b8f0cc 100644 --- a/sysdeps/htl/pt-atfork.c +++ b/sysdeps/htl/pt-atfork.c @@ -20,6 +20,7 @@ #include #include #include +#include /* Hide the symbol so that no definition but the one locally in the executable or DSO is used. */ -- cgit 1.4.1