[RFC] [PATCH] Extend block and wakeup handling to cover writes as well

Pierre Ossman ossman at cendio.se
Fri Dec 19 04:10:27 PST 2014


For TigerVNC we need to ability to gracefully wait for a client socket
to become writeable again. Right now we have to either patch the Xorg
code, or resort to polling. I'd very much prefer if we could hook into
the main select loop properly. :)

Please see the attached patch and see if this seems like a reasonable
way to solve this. I thought about changing the BlockHandlerProc
definition, but it is exposed in application headers so it didn't seem
safe to touch.

PS. Please cc me on any replies, and allow for some delay in responses
on account of holidays. :)

Rgds
-- 
Pierre Ossman           Software Development
Cendio AB		https://cendio.com
Teknikringen 8		https://twitter.com/ThinLinc
583 30 Linköping	https://facebook.com/ThinLinc
Phone: +46-13-214600	https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Extend-block-and-wakeup-handling-to-cover-writes-as-.patch
Type: text/x-patch
Size: 20171 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20141219/0a9bee54/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20141219/0a9bee54/attachment-0001.sig>


More information about the xorg-devel mailing list