note 87190 added to function.pcntl-fork
| From: | pagan at o2 dot pl | Date: | Sun, 23 Nov 2008 20:57:01 +0000 |
| Subject: | note 87190 added to function.pcntl-fork | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-146847@lists.php.net to get a copy of this message | ||
Mayby:
foreach ($cmds as $cmd) {
$pid=pcntl_fork();
if (!$pid) { // if we don't have a pid (pid = 0), we know that is a child
exec($cmd);
break;
}
}
----
Server IP: 82.160.94.10
Probable Submitter: 83.168.122.13
----
Manual Page -- http://www.php.net/manual/en/function.pcntl-fork.php
Edit -- https://master.php.net/note/edit/87190
Del: integrated -- https://master.php.net/note/delete/87190/integrated
Del: useless -- https://master.php.net/note/delete/87190/useless
Del: bad code -- https://master.php.net/note/delete/87190/bad+code
Del: spam -- https://master.php.net/note/delete/87190/spam
Del: non-english -- https://master.php.net/note/delete/87190/non-english
Del: in docs -- https://master.php.net/note/delete/87190/in+docs
Del: other reasons-- https://master.php.net/note/delete/87190
Reject -- https://master.php.net/note/reject/87190
Search -- https://master.php.net/manage/user-notes.php