Autor Thema: [Bug report] 100% CPU when the device is unplugged  (Gelesen 6593 mal)

Absilion

  • Newbie
  • *
  • Beiträge: 1
    • Profil anzeigen
[Bug report] 100% CPU when the device is unplugged
« am: Oktober 25, 2012, 12:07:07 Nachmittag »
When the USB DVB device is unplugged while a process is reading from the device file, the read() syscall blocks and the process consumes 100% CPU.

This can be reproduced by reading with the cat or mediaclient --cat comamnds as described in the sundtek wiki: http://wiki.sundtek.de/index.php/Mediaclient#Receiving_Full_Transponder

Linux kernel: 3.0.1
Sundtek driver: 121008.171453

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8604
    • Profil anzeigen
Re:[Bug report] 100% CPU when the device is unplugged
« Antwort #1 am: Oktober 25, 2012, 12:56:24 Nachmittag »
Thanks for reporting this, I think there was some purpose on doing that in the past however the driver is updated and read() will exit when the device got unplugged.
« Letzte Änderung: Oktober 25, 2012, 06:43:08 Nachmittag von Sundtek »
Failure is a good thing! I'll fix it