[hal patch] Fix 100% CPU spinning and input device breaking in input addon

Martin Pitt martin.pitt at ubuntu.com
Mon Apr 21 02:01:05 PDT 2008


Hi all,

Jon Oberheide tracked down a file descriptor mishandling bug in
addon-input (https://launchpad.net/bugs/211343). This caused the addon
to use 100% CPU on a lot of people's boxes, since it polled invalid
file descriptors from disappeared devices. The patch makes sure that
in that case the callback is called and that returns false (and thus
removes the FD from the watched set).

Thanks,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02_input_spin_removed_fd.patch
Type: text/x-diff
Size: 949 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080421/cd58e5e2/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freedesktop.org/archives/hal/attachments/20080421/cd58e5e2/attachment.pgp 


More information about the hal mailing list