Don't set timeouts back to defaults right away

This commit is contained in:
Ben Gras 2005-08-24 16:49:28 +00:00
parent 8a149da394
commit f81829d20d

View File

@ -1876,16 +1876,12 @@ void m_read(int ev, object_t *op)
} else
if (n < SECTOR_SIZE) {
if(probing) {
v = 0;
ioctl(device, DIOCTIMEOUT, &v);
close(device);
device= -1;
return;
}
printf("%s: Unexpected EOF", curdev->subname);
}
v = 0;
ioctl(device, DIOCTIMEOUT, &v);
if (n <= 0) stat_end(5);
if (n < SECTOR_SIZE) n= SECTOR_SIZE;