Bug#470629: libchipcard-tools: creates high cpu load by scanning for new usb device every second

2008-03-12 Thread Armin Burchardt
Package: libchipcard-tools Version: 4.0.0-5 Severity: minor The /usr/sbin/chipcardd4 daemon is searching every second for a new usb card reader. This is done with a search in the /proc directory (checked with strace). Perhaps udev can be used to send a signal to the daemon to start a search for

Bug#470629: libchipcard-tools: creates high cpu load by scanning for new usb device every second

2008-03-12 Thread Micha Lenk
Hi Armin, thank you for your feedback. On Wed, Mar 12, 2008 at 11:59:07AM +0100, Armin Burchardt wrote: The /usr/sbin/chipcardd4 daemon is searching every second for a new usb card reader. This is done with a search in the /proc directory (checked with strace). Did you already figured out

Bug#470629: libchipcard-tools: creates high cpu load by scanning for new usb device every second

2008-03-12 Thread Armin Burchardt
Hi Micha! On Wed, Mar 12, 2008 at 01:29:01PM +0100, Micha Lenk wrote: Did you already figured out which lines of code might be responsible for this behaviour? I would start the search in src/lib/server/server/devicemanager/devicemanager.c in the HardwareScan-function around line 3330. But i

Bug#470629: libchipcard-tools: creates high cpu load by scanning for new usb device every second

2008-03-12 Thread Martin Preuss
Hi, On Mittwoch, 12. März 2008, Armin Burchardt wrote: Hi Micha! On Wed, Mar 12, 2008 at 01:29:01PM +0100, Micha Lenk wrote: Did you already figured out which lines of code might be responsible for this behaviour? [...] The daemon uses libsysfs instead of libusb, because libusb wakes up