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

Attachment: signature.asc
Description: PGP signature

Reply via email to