Метод |
Описание |
|
__construct ( ) |
|
|
count ( ) : integer |
Return count of currently running child process. |
|
demonize ( ) |
Forks the currently running process to detach from console. |
|
dispatch ( ) |
Calls signal handlers for pending signals. |
|
dispatchSignals ( ) |
Calls signal handlers for pending signals. |
|
fork ( callable $callable ) : ko\Process |
Forks the currently running process. |
|
getProcessCount ( ) : integer |
Return count of currently running child process. |
|
handleSigChild ( ) |
|
|
handleSigTerm ( ) |
|
|
hasAlive ( ) : boolean |
Return TRUE is manager has alive children processes. |
|
onShutdown ( callable $callable ) |
Master process shutdown handler. Shutdown handler called right after the SIGTERM catches by this class. |
|
spawn ( callable $callable ) : ko\Process |
|
|
wait ( ) |
Suspends execution of the current process until all children has exited, or until a signal is delivered whose
action is to terminate the current process. |
|