gavinl writes in Bug 661:
if read() file return less than 1, we should close the fd and then goto end.
1 file changed