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 invocation 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
class EvFork extends EvWatcher {
/* Inherited properties */
public $is_active;
public $data;
public $is_pending;
public $priority;
/* Methods */
public __construct( callable $callback , mixed $data = null , int $priority = 0 )
final public static object createStopped( string $callback , string $data = ?, string $priority = ?)
/* Inherited methods */
public int EvWatcher::clear()
public void EvWatcher::feed( int $revents )
public EvLoop EvWatcher::getLoop()
public void EvWatcher::invoke( int $revents )
public bool EvWatcher::keepalive( bool $value = ?)
public void EvWatcher::setCallback( callable $callback )
public void EvWatcher::start()
public void EvWatcher::stop()
}
Table of Contents