2014-05-25 23:37 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>:
>> Is it different when using the UV signal API? This is, is it safe
>> to do any stuff in the signal_cb?
>>
>
> You can do anything you want in the signal callback, it's safe.

Great.


>> BTW I just want to handle SIGUSR1 in the UV loop of thread-1, while
>> in other threads I block SIGUSR1 by using
>> pthread_sigmask(SIG_BLOCK...). Is this OK if I use uv_signal in
>> thread-1 to handle that signal?
>
> 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 :)


-- 
Iñaki Baz Castillo
<[email protected]>

-- 
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