Set the waiter pipe as non-blocking and record overflows

Fixes #1285