resume stdin and stop when EOF (Ctrl-D) is reached
Merge pull request #2 from benatkin/ctrl-d-eof-support

resume stdin and stop when EOF (Ctrl-D) is reached (fixes #1)