walles/moar

Hang searching in slow pipes

walles opened this issue · 2 comments

Try this:

  • Pipe some long-running and slow command output into moar
  • Try searching for something

Expected behaviour:

  • When moar gets to the end of the input so far it should wrap the search

Current behaviour:

  • moar tries to go to the end of the input and gets stuck forever

Infinite pipes are even worse...

Try this for example: tail -f /dev/null | moar

As of 0.9.8 we don't hang any more searching in slow pipes.

The slowly piping process won't exit when we do, but that's a different issue.