My hunch is that your sockets are being inherited by the child process(es). You should look at setting the close-on-exec flag on your sockets.
--Wez. On 4/12/06, Michael Vergoz <[EMAIL PROTECTED]> wrote: > Salut > > I have a strange problem with the functions exec() / system()... > I have a threaded Web server which executes a script PHP executing itself > another init.d script (/etc/init.d/apache start). > When I stopped the Web server I can not bind() any more the port of this one. > In fact I have the feeling that the kernel does not free the socket properly. > > Did somebody already face this problem? > > Thanks > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php