From: Tony Arcieri Date: 2012-06-13T08:10:20+09:00 Subject: Re: Thread#kill is not rescued by "rescue Exception" --0015175cfb2e89cfa204c24e91b3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Seems good! I've exposed Thread#kill in my library (Celluloid) as a sort of last resort= . As for Thread#raise, I think if you reraise the exception at the end of your error handler after rescuing Exception when it isn't a StandardError, you should be good On Tue, Jun 12, 2012 at 3:29 PM, I=F1aki Baz Castillo wrote= : > 2012/6/13 Tony Arcieri : > > On Thu, Jun 7, 2012 at 4:12 AM, I=F1aki Baz Castillo > wrote: > >> > >> So, it means that the signal send by Thread#kill is not > >> "rescue--able", am I right? > > > > > > I think that's as it should be. If you want the same thing, but > > "rescue-able", why not Thread#raise? > > Hi Tony, I don't want to use Thread#kill nor Thread#raise. It's just > that I want my application to be ready if the user decides to kill the > thread with Thread#kill. > > Regards. > > -- > I=F1aki Baz Castillo > > > --=20 Tony Arcieri --0015175cfb2e89cfa204c24e91b3 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Seems good!

I've exposed Thread#kill in my library (Celluloid) a= s a sort of last resort.

As for Thread#raise, I think if= you reraise the exception at the end of your error handler after rescuing = Exception when it isn't a StandardError, you should be good

On Tue, Jun 12, 2012 at 3:29 PM, I=F1aki Baz= Castillo <ibc@aliax.net> wrote:
2012/6/13 Tony Arcieri <tony.a= rcieri@gmail.com>:
> On Thu, Jun 7, 2012 at 4:12 AM, I=F1aki Baz Cas= tillo <ibc@aliax.net> wrote:
>>
>> So, it means that the signal send by Thread#kill is not
>> "rescue--able", am I right?
>
>
> I think that's as it should be. If you want the same thing, but > "rescue-able", why not Thread#raise?

Hi Tony, I don't want to use Thread#kill nor Thread#raise. = It's just
that I want my application to be ready if the user decides to kill the
thread with Thread#kill.

Regards.

--
I=F1aki Baz Castillo
<ibc@aliax.net>




--
= Tony Arcieri

--0015175cfb2e89cfa204c24e91b3--