[lsan] Do not check for leaks in the forked process
authorVitaly Buka <vitalybuka@google.com>
Tue, 5 Jun 2018 18:15:57 +0000 (18:15 +0000)
committerVitaly Buka <vitalybuka@google.com>
Tue, 5 Jun 2018 18:15:57 +0000 (18:15 +0000)
commitb89704fa6f6fc80c58bdacdadeb6d0dd4fa6e5d9
tree7c86f0fca1bd96d8a0baea7344ad7bf373a685db
parent8f6d6c817d6231c61c1bb04b98f7e5528e4b9ac4
[lsan] Do not check for leaks in the forked process

Summary:
If calling process had threads then forked process will fail to detect
references from them.

Fixes https://github.com/google/sanitizers/issues/836

Reviewers: alekseyshl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D47751

llvm-svn: 334036
compiler-rt/lib/lsan/lsan_common.cc
compiler-rt/test/lsan/TestCases/Linux/fork_with_threads.cc [new file with mode: 0644]