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
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user