[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Thread#abort_on_exception=true and exit(0

Ara.T.Howard

10/15/2004 7:01:00 PM

2 Answers

Yukihiro Matsumoto

10/16/2004 2:46:00 AM

0

Hi,

In message "Re: Thread#abort_on_exception=true and exit(0)"
on Sat, 16 Oct 2004 04:14:28 +0900, "Ara.T.Howard" <Ara.T.Howard@noaa.gov> writes:

|the thing is, i want the slave to execute 'exit!' not 'exit' on thread error
|such that exit handlers do not get run.
|
|any thoughts on how to do this?

How about wrapping everything in the

begin
... child ...
rescue Exception # catch all exception (including exit)
exit!
end

?

matz.


Ara.T.Howard

10/16/2004 3:03:00 AM

0