Added parsers forking

This commit is contained in:
tom-orrow 2011-04-05 00:11:41 +04:00
parent 3496f57601
commit 1a8047b4f5

View File

@ -1,5 +1,14 @@
#!/opt/local/bin/php
<?php
// Демонизация процесса
$child_pid = pcntl_fork();
if ($child_pid == -1) {
die('Error while forking process.');
} elseif ($child_pid) {
// Выходим из родительского, привязанного к консоли, процесса
exit;
}
require_once '/www/server/php/common.php';