From: Robert Klemme Date: 2003-09-19T20:57:30+09:00 Subject: Re: closing stderr "Rudolf Polzer" schrieb im Newsbeitrag news:slrnbmloi3.bll.denshimeiru-sapmctacher@message-id.durchnull.ath.cx... > > This routine has a totally different problem: closing $stderr make the lib > > function abort because it will get an exception on writing to $stderr. > > $stderr has to be something that is open. > > Then use the StringIO trick from the other posting. > > I thought about an external library which is an interface to an > existing C library which writes to stderr (file descriptor 2). Even then one shouldt ensure that fd 2 is opened to something unless you know that the external lib simply doesn't write to stderr if that is closed. Regards robert