summary refs log tree commit diff
path: root/include/register-atfork.h
Commit message (Collapse)AuthorAgeFilesLines
* posix: Consolidate register-atforkAdhemerval Zanella2021-03-121-0/+63
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.