From: Rudolf Polzer Date: 2003-09-19T21:37:35+09:00 Subject: Re: closing stderr Scripsit illa aut ille �Robert Klemme� : > "Rudolf Polzer" schrieb: > > 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. write() to a closed FD fails, but most libs ignore the error. If they don't, however, it needs to be reopened to something like /dev/null which isn't possible in a platform-independent manner. -- The only thing that Babelfish is good at is proving that Vogons are great poets. Josef 'Jupp' Schugt in japan.anime.evangelion