More examples and tweaks

* Signal dispatch() method now uses own pid as default value
* SharedData now updates checksum cache on set()
This commit is contained in:
2018-04-15 17:25:55 +02:00
parent 86ff40274b
commit 176f9aa5ec
8 changed files with 148 additions and 3 deletions

View File

@ -17,8 +17,8 @@ class Signal
pcntl_signal($this->signo, $handler);
}
public function dispatch($pid):bool
public function dispatch($pid=null):bool
{
return posix_kill($pid, $this->signo);
return posix_kill($pid?:posix_getpid(), $this->signo);
}
}