Don't set timeouts back to defaults right away
This commit is contained in:
parent
8a149da394
commit
f81829d20d
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user