Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13871 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19461 invoked by uid 1010); 16 Nov 2004 10:53:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19431 invoked by uid 1007); 16 Nov 2004 10:53:41 -0000 Message-ID: <20041116105341.19378.qmail@pb1.pair.com> To: internals@lists.php.net Date: Tue, 16 Nov 2004 10:54:11 +0000 Organization: FCCN - =?ISO-8859-1?Q?Funda=E7=E3o_para_a_Computa=E7=E3?= =?ISO-8859-1?Q?o_Cientifica_Nacional?= User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 193.136.7.140 Subject: PHP broken pipe in fork From: user@domain.invalid Hi, i'm using firebird 1.5.1 on a linux machine with a php script I'm using a query in loop and go through all records to do some operations in the middle of the script i fork(); to do other things When i return to the parent process i try to make one update and i get the following error [nativecode=Unable to complete network request to host "127.0.0.1". Error writing data to the connection. Broken pipe] And continue the loop of the records of the query. It apears that the fork and the wait from pcntl closes the sockets to the database. Is this a regular beaviour ? How can it be solved ? I'm using Pear DB for database access. Thank you in advance Rui Francisco