fix preloading of app with hidden pty with lots of output

if we never read from the PTY, and the app spews a lot of messages
on startup, it might hang because the buffer is full