Added parsers forking
This commit is contained in:
parent
3496f57601
commit
1a8047b4f5
@ -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';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user