EVFORK(3) 1 EVFORK(3)
The EvFork class
INTRODUCTION
Fork watchers are called when a fork() was detected (usually because whoever signalled libev about it by calling EvLoop::fork ). The invo-
cation is done before the event loop blocks next and before EvCheck watchers are being called, and only in the child after the fork. Note,
that if whoever calling EvLoop::fork calls it in the wrong process, the fork handlers will be invoked, too.
CLASS SYNOPSIS
EvFork
EvForkextends
EvWatcher
Inherited properties
o public$is_active
o public$data
o public$is_pending
o public$priority
Methods
o public EvFork::__construct NULL (callable $callback, [mixed $data], [int $priority])
o finalpublicstatic object EvFork::createStopped (string $callback, [string $data], [string $priority])
Inherited methods
o public int EvWatcher::clear (void )
o abstractpublic EvWatcher::__construct (void )
o public void EvWatcher::feed (int $revents)
o public EvLoop EvWatcher::getLoop (void )
o public void EvWatcher::invoke (int $revents)
o public bool EvWatcher::keepalive ([bool $value])
o public void EvWatcher::setCallback (callable $callback)
o public void EvWatcher::start (void )
o public void EvWatcher::stop (void )
PHP Documentation Group EVFORK(3)