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 } else
if (n < SECTOR_SIZE) { if (n < SECTOR_SIZE) {
if(probing) { if(probing) {
v = 0;
ioctl(device, DIOCTIMEOUT, &v);
close(device); close(device);
device= -1; device= -1;
return; return;
} }
printf("%s: Unexpected EOF", curdev->subname); printf("%s: Unexpected EOF", curdev->subname);
} }
v = 0;
ioctl(device, DIOCTIMEOUT, &v);
if (n <= 0) stat_end(5); if (n <= 0) stat_end(5);
if (n < SECTOR_SIZE) n= SECTOR_SIZE; if (n < SECTOR_SIZE) n= SECTOR_SIZE;