diff options
| author | joerg <joerg@NetBSD.org> | 2019-11-07 19:45:18 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2019-11-07 19:45:18 +0000 |
| commit | 217179810c21ef548cf7d23eecec36293813da5b (patch) | |
| tree | e458c22cfbe465562fa9542613daf2c0de25463f /external/apache2/llvm/dist/clang/lib/Serialization/ModuleFileExtension.cpp | |
| parent | 2783cd3dee26f0ef51b19d383434ad87c0d9af13 (diff) | |
Preserve the LWP ID of the calling thread on (v)fork. This ensures that
_lwp_self() remains invariant as necessary for the locking in the
dynamic linker. Otherwise if a process creates a thread and forks from
it, the main thread of the parent would share the LWP ID of the main
thread of the child, even though they have different origins.
Partial fix for pkg/54192.
Diffstat (limited to 'external/apache2/llvm/dist/clang/lib/Serialization/ModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions
