From: Ben Gras Date: Wed, 24 Aug 2005 16:49:28 +0000 (+0000) Subject: Don't set timeouts back to defaults right away X-Git-Tag: v3.1.0~292 X-Git-Url: http://zhaoyanbai.com/repos/man.rndc.html?a=commitdiff_plain;h=f81829d20d1964dd76739077e52df16e60f5e2f9;p=minix.git Don't set timeouts back to defaults right away --- diff --git a/commands/ibm/autopart.c b/commands/ibm/autopart.c index ad5500736..70126dba7 100755 --- a/commands/ibm/autopart.c +++ b/commands/ibm/autopart.c @@ -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;