aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/interposing_table.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-01-10 19:22:49 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-01-11 20:59:52 +0000
commit21f749da82e755aafab127618affeffb86cff9a5 (patch)
tree098b89a974c36f89652b952872c0977c31cbfd32 /lib/libc/sys/interposing_table.c
parent4174e45fb4320dc27969c3fcbdd7d06e3b1150b8 (diff)
downloadsrc-21f749da82e755aafab127618affeffb86cff9a5.tar.gz
src-21f749da82e755aafab127618affeffb86cff9a5.zip
libthr: wrap pdfork(2), same as fork(2).
Without wrapping, rtld services and malloc(3) are not guaranteed to operate correctly in the forked child. Reviewed by: markj MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D28088
Diffstat (limited to 'lib/libc/sys/interposing_table.c')
-rw-r--r--lib/libc/sys/interposing_table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/sys/interposing_table.c b/lib/libc/sys/interposing_table.c
index 670e9fd7dd0f..b2cfb3250cd9 100644
--- a/lib/libc/sys/interposing_table.c
+++ b/lib/libc/sys/interposing_table.c
@@ -82,6 +82,7 @@ interpos_func_t __libc_interposing[INTERPOS_MAX] = {
SLOT(fdatasync, __sys_fdatasync),
SLOT(clock_nanosleep, __sys_clock_nanosleep),
SLOT(distribute_static_tls, __libc_distribute_static_tls),
+ SLOT(pdfork, __sys_pdfork),
};
#undef SLOT