-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/26/2014 12:36 AM, Iñaki Baz Castillo wrote: > 2014-05-26 0:24 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>: >> No. If you are using uv_signal handles, signals will be delivered >> to all loops that have active handles for that signal. > > > Sorry, I don't get it. A signal sent to a process is supposed to > be delivered by the OS to *any* thread of that process. In my case > I run N threads and N independent UV loops. I cannot figure out how > those independent loops are supposed to "collaborate" in order to > broadcast a signal received by any of them to all the rest. No way > IMHO. >
Because libuv has a global list of handles interested in signals. Check src/unix/signal.c. It just works. - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTgnvEAAoJEEEOVVOum8BZDd8QAJ66tc6nhew0VICwywU4p8y1 fRokuZZod4Ekn4nh8aZ7eDmS/epKpzqpf7xR/d65qU6987bKYor0mF6CJzy2orjx NIvEiA8f3u7/QxrEdLR0H0ACNiBQBjNYNrI/twnVjkDgI0PKbswd40pN205BXgVF r5qXmeZ5/xh6mrU5YZZqggYJrIwiFSs9g2zQRUsuX7BXyib+We392vYaIPxwYqAL xdr4+akePt1CHN6PtWrdRSSqzR6t3SaVSwHcEPbNK7lwVaL/ElxAJFQuh6yew2bb GTrkPwMGO4Kff2wxEHnFa5JU2wPACHUsiJkDEAo6viK+gxGrFsaj7GHWY85KTxnL bwdAZL7m/86JzFiwXdfyU/5HCGHhVo7JIS+ziGFDCguncfxAxMTqNmehvV+djhwN 9xWkRUX2s01ip8JGjzjR7MeMAnU5Qi/Uz+6HvDjukimQZeKzSvQpe3muARS/P/2e Jkl2oXx+/gQI+mE8YI2Zwc2goCdiLV2VySErqOP6hV8qwuQHpu1PMuo3GfQMuvxb WpOYlPtmrvoc9pMoEv5Kn1ulVtjNlmz0kIuqEJdTMFCiEHrt8uEzNk77EbbzB6Fq aU6A5qyRH9Z7T5foqJezBW7C4vQlfSIfySCHq2/gOUqSX7XmphC4nNuo7NDSAfEu 6moyA5w53FNDcysYyEc3 =CQ2T -----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.
