Yes, signals are placed in a pending state until a thread is available to deliver them, so blocking them for a short time is never an issue. I'll submit a patch with this change later today. Cheers! Achille Roussel +1 415 490 6339 > On May 28, 2014, at 3:37 AM, Martin Sustrik <sustrik@xxxxxxxxxx> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 28/05/14 12:08, Paul Colomiets wrote: > >>> Wouln't that just trade one synchronisation issue for another? >>> I.e. the main thread could lose some signals while it has signals >>> disabled? >> >> I think they are not lost: >> >> A signal may be blocked, which means that it will not be delivered >> until it is later unblocked. Between the time when it is >> generated and when it is delivered a signal is said to be pending. > > I see. > > I reckon Achille's suggestion makes sense then. > > Martin > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJThbxSAAoJENTpVjxCNN9YPrwH/1XaNRe6kRu2JC2fqBEVhM/m > iPgDVvWjZuPhtQIrZvh/+/qXwoP7TSb6kWsZYfkyJV7+QLDPXDs0edEad0sXD8DP > LCrEKiDuRhJa+Xc+r9se7Tuk1gHMUdmZ2Tn7OZ2aVJmng6TC2wOaedyUW8GN30KQ > 6xwcF8/DKwLroTOFf3NCuv6hjblS+HCaXcvHq4t5IUVqnAW0bYfm+JP3CN8UlTEh > yskbvpKnJZtnkDBShvu58iqCnJsYx+K4+We2vd8vGayYSOgsbJeZEW3mlnKa44WA > +990Yi6nWeCFDcpotFhAysa3r3UQ7LVu7r/Lwzr6gI036bJjtwc4B+CvFC5qSag= > =lhV6 > -----END PGP SIGNATURE----- >