[sane-devel] Analysis of saned CPU utilization

Jay Guerette JayGuerette@pobox.com
Wed, 04 Jun 2003 08:54:35 -0400 (EDT)

>> I've experienced, and seen a few references to similar experiences on
>> the web, saned consuming all available CPU when in use.
>> After running a strace while it was doing this, and examining the
>> source to saned, it appears that it is locked in a tight select loop
>> with no timeout.
> Could you give some more details ? select() is only used once in the
> code (not counting the poll() in main(), or the select() that's used
> instead on platforms where poll() doesn't exist -- that's for 1.0.12).
> A testcase would be nice.

I'll play with the code a bit, and come up with more detail.