]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #11775 : alexcrichton/rust/select-fix, r=pcwalton
authorbors <bors@rust-lang.org>
Sat, 25 Jan 2014 13:11:28 +0000 (05:11 -0800)
committerbors <bors@rust-lang.org>
Sat, 25 Jan 2014 13:11:28 +0000 (05:11 -0800)
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).


Trivial merge