chiark / gitweb /
cdrom_id: retry to open the device, if EBUSY
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 7 Apr 2010 07:24:25 +0000 (09:24 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Wed, 7 Apr 2010 07:24:25 +0000 (09:24 +0200)
commitcccfffbe04c01be12fb42cb12f3f7aa5e2a22dd4
tree762a647b985fac0904dacc4201b6c3f5f6dcfdff
parent36a07a8c34a4cff5ad2bbb6e0fdfed49e8191661
cdrom_id: retry to open the device, if EBUSY

We might fight about the device with polling processes, or other
users who probe the device. Retry a few times if the other one goes
away in the meantime.

Based on a patch from Harald Hoyer.
extras/cdrom_id/cdrom_id.c