diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-10-22 22:16:17 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-10-22 22:16:17 +0000 |
commit | b2bdf61b5f71e0971bdaa0e4cff9647031c6d8ee (patch) | |
tree | 5464d7786b77e36989d044c380759df0c0ddebb4 /lib/CodeGen/CodePlacementOpt.cpp | |
parent | 50e846dbda3390610f7b414dd14000ebb170c737 (diff) | |
download | external_llvm-b2bdf61b5f71e0971bdaa0e4cff9647031c6d8ee.tar.gz external_llvm-b2bdf61b5f71e0971bdaa0e4cff9647031c6d8ee.tar.bz2 external_llvm-b2bdf61b5f71e0971bdaa0e4cff9647031c6d8ee.zip |
Use 'waitpid' instead of 'wait'. Basing Program::Wait() on 'wait()' prevents it being correct within a multithreaded context.
This address: PR 5277 (Program::Wait is unsafe to call from multiple threads).
Note: If waitpid() turns out to be non-portable, we can add more autoconf magic, or look into
another solution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodePlacementOpt.cpp')
0 files changed, 0 insertions, 0 deletions