forked from OSchip/llvm-project
tsan: fix deadlock in libbacktrace
Fixes deadlock seen in GCC. Fixes: #55226 Differential Revision: https://reviews.llvm.org/D124838
This commit is contained in:
parent
e0892614b1
commit
0a1bcab9f3
|
@ -1767,7 +1767,8 @@ TSAN_INTERCEPTOR(int, listen, int fd, int backlog) {
|
|||
|
||||
TSAN_INTERCEPTOR(int, close, int fd) {
|
||||
SCOPED_INTERCEPTOR_RAW(close, fd);
|
||||
FdClose(thr, pc, fd);
|
||||
if (!in_symbolizer())
|
||||
FdClose(thr, pc, fd);
|
||||
return REAL(close)(fd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue