php5rc1 + [x]inetd : how to really close stdin/stdout?

From: Date: Thu, 01 Apr 2004 17:53:59 +0000
Subject: php5rc1 + [x]inetd : how to really close stdin/stdout?
Groups: php.general 
Request: Send a blank email to php-general+get-182050@lists.php.net to get a copy of this message
Hi there. I'm using php5rc1 to write scripts launched by xinetd on a Linux Fedora system. My problem is to close stdin and stdout to really break the socket from the remote end to release a remote resource while I'm doing a long processing locally. It seems that opening php://std[in/out] is some kind of dup(2) of the corresponding streams and thus I never can really break stdin/stdout. Is there some solution that I did not see? Or do I have to expect php5rcX to be changed not to do this kind of dup(2) of the streams the first time that there are opened ? Thanks! Bernard

« previous php.general (#182050) next »