]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libthr: wrap pdfork(2), same as fork(2).
authorKonstantin Belousov <kib@FreeBSD.org>
Sun, 10 Jan 2021 19:22:49 +0000 (21:22 +0200)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 11 Jan 2021 20:59:52 +0000 (22:59 +0200)
commit21f749da82e755aafab127618affeffb86cff9a5
tree098b89a974c36f89652b952872c0977c31cbfd32
parent4174e45fb4320dc27969c3fcbdd7d06e3b1150b8
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
lib/libc/include/libc_private.h
lib/libc/sys/Symbol.map
lib/libc/sys/interposing_table.c
lib/libc/sys/pdfork.c [new file with mode: 0644]
lib/libthr/thread/thr_fork.c
lib/libthr/thread/thr_private.h
lib/libthr/thread/thr_syscalls.c