-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/25/2014 11:43 PM, Iñaki Baz Castillo wrote: > 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 :) >
When handling SIGUSR1 becomes the bottleneck of your application, I'll fix it for free :-P - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTgmZeAAoJEEEOVVOum8BZHTgP/3R6QYmy4kIG4FUo7nXTn3Nb XdrRkI9v3qq3NMm70da+JSdIp8Ffx9NJD06AHDhVYy2XiYBKaCllRLT8oskz8Wbo PmJysGakJP0BeEO/Eopa++czcJbrRPHest1LFf9+KiQJ7aeFYytBFDmDmpc9pjA3 QHvyfHSCXd437JmEBmLVR8hbT/s3bpnhBFQ4dP15hm2J8hy5uJHPMLDykFK8j//+ doSxnSnFyamktJHWxaxCaKZRehysoqxRRMyVcN5Tq6TvejP3xqrljATWnrXmcWAN PbTDw26JFX4xaHeUS1E/IJI7DfU+dVyrVElm4X9RIuZjcWCsuaMA5d1vWh9gfYQk qF7MAyemS+OXkoAkibgW0HUPv6W7ZvZF8h4BtFpJHW5fWIDgwuXOZg7bQaWToTS9 3bJ0fRc5j5XwCpfsHDcOPboG6PEByhLUE9Sqql5jNoIGalzkVY+xiQ8vbAql9ZEZ q3BshM8xfS60qoTwKvteEvgNzu4H3+/DvhYJE1gezNWuM7Zzc0+nYzhIZWPjaS/1 cij7Ez/SCd4nNfWT49RRcWqSWLuHfEUrKf1IYukAHqltVTghUjBlkartdH3Zh2LP bqHrVesATO1ulXoRTcw+V5W/Kp+shVLQhqfz19LKddlpDVltq/YPEmhHl5vPE8eo vefPhklYGjC2bhF4WV2d =qlaf -----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.
