The EvChild class
(PECL ev >= 0.2.0)
Введение
EvChild
watchers trigger when the process receives a
SIGCHLD
in response to some child status changes (most typically when a child dies
or exits). It is permissible to install an
EvChild
watcher after the child has been forked(which implies it might have
already exited), as long as the event loop isn't entered(or is continued
from a watcher), i.e. forking and then immediately registering a watcher
for the child is fine, but forking and registering a watcher a few event
loop iterations later or in the next callback invocation is not.
It is allowed to register EvChild watchers in the default loop only.
Обзор классов
$pid
,
bool
$trace
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )$pid
,
bool
$trace
,
callable
$callback
[,
mixed
$data
[,
int
$priority
]] )Свойства
- pid
-
Readonly . The process ID this watcher watches out for, or
0
, meaning any process ID. - rpid
-
Readonly .The process ID that detected a status change.
- rstatus
-
Readonly . The process exit status caused by rpid .
Содержание
- EvChild::__construct — Constructs the EvChild watcher object
- EvChild::createStopped — Create instance of a stopped EvCheck watcher
- EvChild::set — Configures the watcher
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для управления процессами программ
- Введение
- Установка и настройка
- Предопределенные константы
- Примеры
- Watchers
- Watcher callbacks
- Periodic watcher operation modes
- The Ev class
- The EvCheck class
- The EvChild class
- The EvEmbed class
- The EvFork class
- The EvIdle class
- The EvIo class
- The EvLoop class
- The EvPeriodic class
- The EvPrepare class
- The EvSignal class
- The EvStat class
- The EvTimer class
- The EvWatcher class
Коментарии
404 Not Found