PHP » GoLang |
login |
register |
about
|
GoLang EvChild::__construct
request it (458)
GoLang replacement for PHP's EvChild::__construct
[edit | history]
EvChild::__construct(PECL ev >= 0.2.0) EvChild::__construct — Constructs the EvChild watcher object Description
public
EvChild::__construct
(
int
$pid
,
bool
$trace
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )Constructs the EvChild watcher object.
Call the callback when a status change for process ID
It is valid to install a child watcher after an EvChild has exited but before the event loop has started its next iteration. For example, first one calls fork , then the new child process might exit, and only then an EvChild watcher is installed in the parent for the new PID .
You can access both exit/tracing status and
The number of PID watchers per PID is unlimited. All of them will be called. The EvChild::createStopped() method doesn't start(activate) the newly created watcher. Parameters
Return ValuesReturns EvChild object on success. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|