[cups.bugs] [LOW] STR #2769: Send jobs to an unplugged usb printer on linux increases cpu usage

Tiago Salem Herrmann tiagosh at gmail.com
Thu Mar 27 09:47:05 PDT 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

If you send a job to an unplugged usb printer on linux, the process called
usb takes 100% of cpu usage.
It happens, as far as I can see, due to an infinite loop in usb-unix.c.
If no device returns EBUSY, sleep() is never called.
The attached patch fixes this issue here. Please, check if it can be
applied upstream and if there are no side-effects.

Thank you

Link: http://www.cups.org/str.php?L2769
Version: 1.3.6
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cups-1.3.6-disconnected-usb-increases-cpu-usage.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20080327/bb3f6e28/attachment.ksh>


More information about the cups mailing list