note 94708 added to function.pcntl-fork
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 19 Nov 2009 18:12:05 +0000 |
| Subject: | note 94708 added to function.pcntl-fork | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-163092@lists.php.net to get a copy of this message | ||
With regards to the database connection, one could deal with this using kill 9 or a sleep, the real
problem is if two threads make a database query at the same time, PHP starts having random database
errors that are not necessarily clear as to what the problem is.
You should create a separate link per thread.
----
Server IP: 66.207.199.35
Probable Submitter: 69.196.151.98
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-fork.php
Edit -- https://master.php.net/note/edit/94708
Del: integrated -- https://master.php.net/note/delete/94708/integrated
Del: useless -- https://master.php.net/note/delete/94708/useless
Del: bad code -- https://master.php.net/note/delete/94708/bad+code
Del: spam -- https://master.php.net/note/delete/94708/spam
Del: non-english -- https://master.php.net/note/delete/94708/non-english
Del: in docs -- https://master.php.net/note/delete/94708/in+docs
Del: other reasons-- https://master.php.net/note/delete/94708
Reject -- https://master.php.net/note/reject/94708
Search -- https://master.php.net/manage/user-notes.php