Summary: | xf86Wakeup clears invalid fd in fd_set | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Chase Douglas <chasedouglas> | ||||||
Component: | Server/General | Assignee: | Peter Hutterer <peter.hutterer> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | medium | Keywords: | patch | ||||||
Version: | git | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Chase Douglas
2009-11-04 11:17:45 UTC
Created attachment 31070 [details] [review] Potential patch fix The attached patch merely moves the FD_CLR() call before the pInfo->read_input() call. I believe this fixes the issue, and I am testing it on my own system right now. Please attach this patch as a signed-off git-formatted patch. For more info, see http://wiki.x.org/wiki/Development/Documentation/SubmittingPatches. Then attach the patch here. I'll take it into my tree then. Created attachment 31076 [details] [review] Git formatted potential patch fix Thanks. On second look at it, I think the move of the FD_CLR is correct, but unblocking the SIGIO must happen after ReadInput. ReadInput causes the events to be passed to the server and - amongst other things - the pointer to move. The whole reason for using SIGIO here is to get more responsive cursor movement, so we can't unblock until that's complete. (In reply to comment #4) > Thanks. On second look at it, I think the move of the FD_CLR is correct, but > unblocking the SIGIO must happen after ReadInput. > ReadInput causes the events to be passed to the server and - amongst other > things - the pointer to move. The whole reason for using SIGIO here is to > get more responsive cursor movement, so we can't unblock until that's > complete. Maybe I don't quite understand what you are saying, but I think the patch is in line with what you've stated. You seem to be saying the the SIGIO unblocking must follow the call to pInfo->read_input. That sequence of events is still preserved in the patch. If I misinterpreted your statement, could you try restating it for me? Thanks I need to either drink more coffee or less, not sure which one. sorry about that, ignore my previous comment. This patch will be included in my next pull request to master, I'll close the bug once it is upstream. Pushed to master as b5aa2e0a5fe233dc883084a5026013472e85bca4. Thanks again for the patch! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.