Looping forever on stdin lines