[pkg-gnupg-maint] Bug#851707: pinentry-gtk-2 frequently fails to grab the keyboard under awesome

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Feb 9 00:49:21 UTC 2017


On Mon 2017-02-06 04:49:44 -0500, Vincent Lefevre wrote:
> On 2017-02-02 19:29:19 +0100, Vincent Bernat wrote:
>> Index: pinentry-1.0.0/gtk+-2/pinentry-gtk-2.c
>> ===================================================================
>> --- pinentry-1.0.0.orig/gtk+-2/pinentry-gtk-2.c
>> +++ pinentry-1.0.0/gtk+-2/pinentry-gtk-2.c
> [...]
>> -  while (tries++ < max_tries && err == GDK_GRAB_NOT_VIEWABLE);
>> +  while (tries++ < max_tries && err == GDK_GRAB_NOT_VIEWABLE
>> +         && (usleep(1000), TRUE));
> [...]
>>    while (tries++ < max_tries && (err == GDK_GRAB_NOT_VIEWABLE
>> -                                 || err == GDK_GRAB_ALREADY_GRABBED));
>> +                                 || err == GDK_GRAB_ALREADY_GRABBED)
>> +         && (usleep(1000), TRUE));
>
> I don't know how it has eventually been fixed, but FYI, usleep()
> is obsolete. The usleep(3) man page says:
>
>   CONFORMING TO
>       4.3BSD,  POSIX.1-2001.   POSIX.1-2001  declares this function
>       obsolete; use nanosleep(2) instead.  POSIX.1-2008 removes the
>       specification of usleep().

patches welcome to do the conversion if this matters to anyone. i'm not
going to lose any usleep over this deprecation right now, since i think
we'll have that function available for a long time in debian.

     --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20170208/46e65bc5/attachment.sig>


More information about the pkg-gnupg-maint mailing list