diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-24 10:02:27 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-24 10:05:58 -0800 |
| commit | 35e26e94d8a13ef3f24a66374aff815e370f8843 (patch) | |
| tree | a9b1083e808c9b25238b213141de708c9d481285 /src/rustllvm/RustWrapper.cpp | |
| parent | 657e3530225410d167d7f1ee827f15bc69cd965e (diff) | |
| download | rust-35e26e94d8a13ef3f24a66374aff815e370f8843.tar.gz rust-35e26e94d8a13ef3f24a66374aff815e370f8843.zip | |
Fix a spuriously tripped assert in select()
The race here happened when a port had its deschedule in select() canceled, but the other chan had already been dropped. This meant that the DISCONNECTED case was hit in abort_selection, but the to_wake cell hadn't been emptied yet (this was done after aborting), causing an assert in abort_selection to trip. To fix this, the to_wake cell is just emptied before abort_selection is called (we know that we're the owner of it already).
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
