From: Aredridel Date: 2006-08-26T05:26:11+09:00 Subject: Re: Can you temporarily turn off STDERR ?? --=-O/KJu6bj2dKufhv9m9cT Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > This comes up often enough that I wonder if allowing IO#reopen to take a > block would be a good idea: >=20 > $stderr.reopen('/dev/null') do > # Code here redirects to /dev/null > end >=20 > # Code outside the block behaves normally >=20 > I thought this idea had been brought up before, and that there was some > downside to this, but I can't find any references to it now. >=20 > Thoughts? Can't handle threading sanely, for one. --=-O/KJu6bj2dKufhv9m9cT Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBE71z6tP09exA3hooRAgCSAJ9uoEOErai78wn1p3xmAV3vgc3NEQCePsZq Nz64uvekzfIMDhFSPdPqizM= =d7hf -----END PGP SIGNATURE----- --=-O/KJu6bj2dKufhv9m9cT--