From: Christoph Kappel Date: 2009-09-29T20:36:44+09:00 Subject: Re: Embedded Ruby 1.9.1, signals and multithreading ------=_Part_9624_664466964.1254224198274 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is there really nobody who can say anything about this or is it just the wr= ong ML? ---- On Fri, 25 Sep 2009 02:56:51 -0700 Christoph Kappel wrote ----=20 > Hello, >=20 > I have some question abouts the signal handling in 1.9.1 and haven't fou= nd any docs so I am asking here -=20 > based on assumptions of course so please correct me if I am mistaken. >=20 > I am author of a window manager (subtle) and embed ruby as scripting lan= guage. Since the switch from > 1.8 to 1.9 I am facing many problems with asynchronous signals in multit= hreading. >=20 > How is signal handling supposed to work and does the thread that ruby cr= eates automatically have any own > signal handlers? Due the asynchronous behaviour of signals like SIGINT t= he first thread with a handler will get > the signal and this is sometimes not my main thread. >=20 > Also when this ruby thread has any handler, can some signals be disabled= or should I just add traps and rely=20 > fully on ruby and dispatch the signals to my main thread? >=20 > Thanks in advance. >=20 > Wbr, Christoph > ------=_Part_9624_664466964.1254224198274--