EvSignal::__constructConstructs EvSignal watcher object Description
public
EvSignal::__construct(
int $signum
,callable $callback
,mixed $data
= null
,int $priority
= 0
) Constructs EvSignal watcher object and starts it automatically. For a stopped periodic watcher consider using EvSignal::createStopped method. Parameters
ExamplesExample #1 Handle SIGTERM signal
See Also
|