Fix long hangs on probing nonexistant floppy drives
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 2 Jun 2010 13:56:07 +0000 (15:56 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 2 Jun 2010 13:59:47 +0000 (15:59 +0200)
commitca93d4e2d9e7f483b2fde1725da086e2cca44164
tree570824f469320feec397a8689797956717031fa2
parentd1e50d1af0458230bdd5cd904ebf40f7600801ec
Fix long hangs on probing nonexistant floppy drives

A lot of modern machines do not have a floppy drive any more, but still have a
floppy controller somewhere (or at least the BIOS pretends to). Trying to
open(/dev/fd0) on these machines causes long hangs, which lead to long desktop
startup times.

To fix this, avoid probing floppies for media in update_info().

https://launchpad.net/bugs/539515
src/device.c