[Xcb] [Patch] Fix deadlock seen with wine

Uli Schlachter psychon at znc.in
Mon Sep 24 13:16:50 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

the attached patch fixes [0]. I came up with another approach which avoids the
theoretical deadlock in the original patch where a thread was writing without
trying to read from the socket. Hopefully the commit message and commits
explain the logic well enough. And yes, I am evil and attach patches.

So what do you guys think?

Cheers,
Uli

[0]: https://bugs.freedesktop.org/show_bug.cgi?id=54671
- -- 
- - Captain, I think I should tell you I've never
  actually landed a starship before.
- - That's all right, Lieutenant, neither have I.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBCAAGBQJQYL+uAAoJECLkKOvLj8sGyigIALU6FtpgxG8HxFWbFPcw/+Se
HtEQLYo6n6eCYUUWqOYwtRWpADwtUtweCb2Y5pdCdgVZRtX8NXCQABrTZcCyicq7
3MPO/8T2n/3JWyZzvOSajPZ1JPD6v712CbnCpSHcryYAcCEXxGMVpstQrVOpF2Q1
vxshZMotMNSKSh1ndlDtzZ5u8T3Ka1FJkBVIZPpbvF4KVanUyqCaNZD3Mt1j+MKX
Y/Sb3SV86iSMIU/UagXfzmmhgJDH5afCkJZjpa0Q2paNPDCHivJiY7c6Bl7s81We
p4eYYVY9sII4zqHu52wu25FG8l9Etwh9rKqMQkgCWJbE1XlxEy3a5I4EOHe9cuI=
=IyiK
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-.gitignore-for-src-man.patch
Type: text/x-diff
Size: 521 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20120924/84231db0/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-a-multi-thread-deadlock.patch
Type: text/x-diff
Size: 1842 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20120924/84231db0/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-.gitignore-for-src-man.patch.sig
Type: application/pgp-signature
Size: 287 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20120924/84231db0/attachment.pgp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-a-multi-thread-deadlock.patch.sig
Type: application/pgp-signature
Size: 287 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20120924/84231db0/attachment-0001.pgp>


More information about the Xcb mailing list