-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/26/2014 12:16 AM, Iñaki Baz Castillo wrote:
> 2014-05-25 23:43 GMT+02:00 Iñaki Baz Castillo <[email protected]>:
>>> Do your other threads also have libuv loops? In that case it
>>> would be easier to just add a dummy signal handle for SIGUSR1
>>> everywhere. I think you should be fine though.
>> 
>> Yes, but I have already working the pthread_sigmask stuff, which
>> is cheaper than a fake signal handler :)
> 
> Said that, your proposal does not convince me. When my software 
> receives a USR1 signal I want it to be *always* delivered to
> thread-A (yes, there are a UV loop in each thread), and for that
> AFAIK the only way is to block that signal in all the other threads
> (with pthread_sigmask). If I install a dummy USR1 handler in the
> other threads, it may happen that a USR1 arrives and it is
> delivered to thread-B so it gets ignored by its dummy handler. I
> don't want that.
> 

No. If you are using uv_signal handles, signals will be delivered to
all loops that have active handles for that signal.

- -- 
Saúl Ibarra Corretgé
bettercallsaghul.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBAgAGBQJTgm2BAAoJEEEOVVOum8BZ9AEP/2iAwhkM3zX+OwiTJbn6vG3a
68suS7elCizFR28JcwVzaNxbvUTA8C6v+SdTNZyavxMc+jUD6ebf0cWAh8eDHrdp
6hcZ/gtALixp29C+LO7vFMb8g7PnofscUtkK+DgMPyySlCJm64JqqgoH/zIhLmbI
7k+QUn52zC4T0NBs8k5NXr4gMCF/GF5ERzsumQNSPe8AvrDiffcTdYLLkhjRN0QA
bOXabXBY55TEP8TAOlU7hr05U4Lemfy/nQ6JG/EK5mD0LU99ARo47v0HSq8CkpyJ
D7GfXSvaKk8wNUZtlqKQMSZ2L50yMxsKWfIiKP0A4Zm0Gi3axw7OETFV7Ob+/lXH
ldaPU7tSp/ktcvpO1rLxhQOOf8coUQBcGvS1/4acv9695ler98z4f4Ro2dUd0Cjt
4Sw7MsFh5u73yMwsdtRrBWxIgcmaeLIfVQYFkc6KBKZC/h4oEjupsHk2KOhH67tw
Zh4ucvaRNlA6SMfHakqY5rq9YOz/T3jEUZHJXgZVmVbF7gqfpFAH9v74XND/NyQC
9QaiyA1ulinYfekfSMIQmmyB+Dq8ft5XqY0bIPLb793h801YiLahpf8FOlB1G8yF
oH95iyzj9GyuInBeEGisU0zxdexdtgpr/e0jiqkPD8PYxW0Ji7ttnc3mXHUoSSiL
kwziK/MuakkAyGnWNiQx
=scs0
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to