]> Zhao Yanbai Git Server - minix.git/commitdiff
Don't set timeouts back to defaults right away
authorBen Gras <ben@minix3.org>
Wed, 24 Aug 2005 16:49:28 +0000 (16:49 +0000)
committerBen Gras <ben@minix3.org>
Wed, 24 Aug 2005 16:49:28 +0000 (16:49 +0000)
commands/ibm/autopart.c

index ad5500736c49a7f2e0732c4cd4dcc849957376d6..70126dba7a34a0bc31a006c1db31878eb8bd80b9 100755 (executable)
@@ -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;