From: bors Date: Mon, 12 Feb 2018 17:53:00 +0000 (+0000) Subject: Auto merge of #5030 - alexcrichton:better-poll, r=matklad X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~3^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cb30fba4a35d8716ed490cc9a220ae99701d8015;p=cargo.git Auto merge of #5030 - alexcrichton:better-poll, r=matklad Don't spin on empty fds in `read2` on Unix This commit fixes what I think is some pathological behavior in Cargo where if one stdio stream is closed before another then Cargo can accidentally spin in a tight loop and not block appropriately. Previously, for example, if stderr closed before stdout then Cargo would spin in a `poll` loop continuously getting notified that stderr is closed. The behavior is now changed so after a file descriptor is done we stop passing it to `poll` and instead only pass the one remaining readable file descriptor. --- cb30fba4a35d8716ed490cc9a220ae99701d8015