Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22818 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77388 invoked by uid 1010); 17 Apr 2006 12:06:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77371 invoked from network); 17 Apr 2006 12:06:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Apr 2006 12:06:49 -0000 X-Host-Fingerprint: 64.233.166.179 pproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.166.179:35664] helo=pproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2B/F6-19715-9D483444 for ; Mon, 17 Apr 2006 08:06:49 -0400 Received: by pproxy.gmail.com with SMTP id i49so292917pyi for ; Mon, 17 Apr 2006 05:06:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YDobXO2Fdhd7HLHlagNpeB17/PrmD74UpUw8EpDM2e+XsDpsMFrX3vUfx/AkNGWrXOCTdHGENDulBxUjfUjw00jKkLRoiE/J0+sa76JP5dzP4Pe0m4KLlDR/Tj+ulgRswwl/ErNMHPoIZq8BTl20FXdg3C1SdcOK0VTfU3TeSfQ= Received: by 10.35.8.1 with SMTP id l1mr870339pyi; Mon, 17 Apr 2006 05:06:46 -0700 (PDT) Received: by 10.35.41.17 with HTTP; Mon, 17 Apr 2006 05:06:46 -0700 (PDT) Message-ID: <4e89b4260604170506m71aecaa5y41de983dae76d82d@mail.gmail.com> Date: Mon, 17 Apr 2006 08:06:46 -0400 To: "Michael Vergoz" Cc: PHPdev In-Reply-To: <00cd01c65e37$52f814c0$6700a8c0@binarysecfb111> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <00cd01c65e37$52f814c0$6700a8c0@binarysecfb111> Subject: Re: [PHP-DEV] Strange problem with the functions exec() / system()... From: kingwez@gmail.com ("Wez Furlong") 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 wrote: > Salut > > I have a strange problem with the functions exec() / system()... > I have a threaded Web server which executes a script PHP executing itsel= f 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 prope= rly. > > Did somebody already face this problem? > > Thanks >