Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22834 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23885 invoked by uid 1010); 18 Apr 2006 15:01:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23824 invoked from network); 18 Apr 2006 15:01:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2006 15:01:22 -0000 X-Host-Fingerprint: 193.252.22.54 smtp13.wanadoo.fr Linux 2.4/2.6 Received: from ([193.252.22.54:42515] helo=smtp13.wanadoo.fr) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 50/36-19715-04FF4444 for ; Tue, 18 Apr 2006 11:01:21 -0400 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1309.wanadoo.fr (SMTP Server) with ESMTP id CC112700009C for ; Tue, 18 Apr 2006 17:01:12 +0200 (CEST) Received: from binarysecfb111 (AStDenis-105-1-52-199.w80-8.abo.wanadoo.fr [80.8.146.199]) by mwinf1309.wanadoo.fr (SMTP Server) with SMTP id 30BE27000083; Tue, 18 Apr 2006 17:01:10 +0200 (CEST) X-ME-UUID: 20060418150111199.30BE27000083@mwinf1309.wanadoo.fr Message-ID: <00ad01c662f8$b6a7cea0$6700a8c0@binarysecfb111> To: "Wez Furlong" Cc: "PHPdev" References: <00cd01c65e37$52f814c0$6700a8c0@binarysecfb111> <4e89b4260604170506m71aecaa5y41de983dae76d82d@mail.gmail.com> Date: Tue, 18 Apr 2006 16:42:51 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: Re: [PHP-DEV] Strange problem with the functions exec() / system()... From: mv-php@binarysec.com ("Michael Vergoz") Yes thank you i have identify the problem. ----- Original Message ----- From: "Wez Furlong" To: "Michael Vergoz" Cc: "PHPdev" Sent: Monday, April 17, 2006 2:06 PM Subject: Re: [PHP-DEV] Strange problem with the functions exec() / system()... 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 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 >