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

![](http://blog.codinghorror.com/content/images/uploads/2007/03/6a0120a85dcdae970b0128776ff992970c-pi.png)