sleep when eof