the sleep 1 is not enough in some circumstances. Switching to a fifo helps. (cherry picked from commit 1de951d31d)
1de951d31d