Re: Strange problem with the functions exec() / system()...

From: Date: Mon, 17 Apr 2006 12:06:46 +0000
Subject: Re: Strange problem with the functions exec() / system()...
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-22818@lists.php.net to get a copy of this message
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 <mv-php@binarysec.com> 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 >

« previous php.internals (#22818) next »