aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2015-04-27 20:45:35 +0000
committerChris Bieneman <beanz@apple.com>2015-04-27 20:45:35 +0000
commit017ebf09d97e209a4d228be8ab24582251ac025f (patch)
tree3cc6fa8aabbe60f17b580650f97eaa26d58962e3 /clang/lib/Driver/Tools.cpp
parente71db85beda3b82ad9aaf38c5eba9212e53a7071 (diff)
downloadllvm-017ebf09d97e209a4d228be8ab24582251ac025f.zip
llvm-017ebf09d97e209a4d228be8ab24582251ac025f.tar.gz
llvm-017ebf09d97e209a4d228be8ab24582251ac025f.tar.bz2
Fixes a hang that can occur if a signal comes in during malloc calls.
We need to dereference the signals mutex during handler registration so that we force its construction. This is to prevent the first use being during handling an actual signal because you can't safely allocate memory in a signal handler. llvm-svn: 235914
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions