PHP broken pipe in fork
| From: | user at domain dot invalid | Date: | Tue, 16 Nov 2004 10:54:11 +0000 |
| Subject: | PHP broken pipe in fork | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13871@lists.php.net to get a copy of this message | ||
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