commit | ec26f3ace5f9b260ca91508030f07465ae2f9f78 | [log] [tgz] |
---|---|---|
author | Lasse Collin <lasse.collin@tukaani.org> | Sun Jan 26 14:13:42 2020 +0200 |
committer | Lasse Collin <lasse.collin@tukaani.org> | Wed Feb 05 22:00:28 2020 +0200 |
tree | 36c2c61c775b6e449c05254901796a3efbd93ba2 | |
parent | 38915703241e69a64f133ff9a02ec9100c6019c6 [diff] |
xz: Fix semi-busy-waiting in xz --flush-timeout. When input blocked, xz --flush-timeout=1 would wake up every millisecond and initiate flushing which would have nothing to flush and thus would just waste CPU time. The fix disables the timeout when no input has been seen since the previous flush.