diff options
| author | Pavel Labath <labath@google.com> | 2015-05-28 13:41:08 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2015-05-28 13:41:08 +0000 |
| commit | fb7d5b8384a58fcf59518273e8aeade078acd44b (patch) | |
| tree | 3607af656fe2bee5c9a145c3ae046030bb0e2652 /llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h | |
| parent | b2f399264d2ec868dbad3bebfd36f5cfb9e269ed (diff) | |
| download | bcm5719-llvm-fb7d5b8384a58fcf59518273e8aeade078acd44b.tar.gz bcm5719-llvm-fb7d5b8384a58fcf59518273e8aeade078acd44b.zip | |
Fix race in IOHandlerProcessSTDIO
Summary:
IOHandlerProcessSTDIO::Run() was opening the pipe for interrupt requests lazily. This was racing
with another thread executing IOHandlerProcessSTDIO::Cancel() simultaneously. I fix this by
opening the pipe in the object constructor. The pipe will be automatically closed when the object
is destroyed.
Test Plan: Tests pass on linux.
Reviewers: clayborg, ribrdb
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D10060
llvm-svn: 238423
Diffstat (limited to 'llvm/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h')
0 files changed, 0 insertions, 0 deletions

