Re: XGrabServer problem when opening a different display connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Peter Hutterer <peter@xxxxxxxxxxxxxxx>:

> On Sat, May 10, 2008 at 11:56:32AM -0300, pcpa@xxxxxxxxxxxxxxx wrote:
>>   This is kinda weird, but shows how to cause a "dead lock" after
>> issuing a XGrabServer/XUngrabServer.
>>
>>   In the attached program, if using a smaller value to j (like 100)
>> it will work correctly, otherwise, when trying to open a new
>> Display connection, it will lock in the authorization code because
>> the server will not return any data.
>
> Did you try putting an XFlush() in after UngrabServer?

  I noticed that also after sending the email... It works correctly
when calling XFlush() after XUngrabServer().

> As it is now, if the UngrabServer request is buffered in Xlib, you still hold
> the server grab when you open a new connection.
>
> Cheers,
>  Peter

Paulo



_______________________________________________
xorg mailing list
xorg@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xorg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [X Forum]     [Intel Graphics]     [AMD Graphics]     [Nouveau Driver]     [XFree86]     [XFree86 Newbie]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]

  Powered by Linux