Simple question

Ben Clewett <[email protected]> Tue, 08 Jul 2003 08:58:28 +0000
Newsgroups gmane.network.xinetd
Message-ID <[email protected]>
Xinetd,

A couple of weeks ago you kindly showed me how to increase the quality 
of an xinetd app by communicating using read(0) and write(1), instead of 
fread(stdin) and fwrite(stdout).

I'm having problems with API's leeking debug and error messages to 
stdout and stderr, which get passed down the socket.

If there a way of closing stdout and stderr without closing the socket 
for read(0) and write(1)?  I've tried the obvious fclose(stdout) but 
this closed the socket as well...  Or alternativelly, redefine the 
stdout FILE to point to /dev/null or something :)

Regards and thanks again,

Ben