[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: Can you temporarily turn off STDERR ??

Aria Stewart

8/26/2006 1:46:00 AM


> Awesome. Now, can we break this with threads? Aredridel?
>
> Of course, I wonder if IO#reopen is thread safe anyway, regardless of
> the block. I've never seriously tested it.

Well, it's thread-safe, but it's process-global. It'd get turned off for
the duration of the block, regardless of other threads.