<?php posix_getpid(): int
<?php }); $this->loop->futureTick(function () { posix_kill(posix_getpid(), SIGUSR1); }); $this->loop->run();
<?php $this->loop->addSignal(SIGUSR1, $func); $this->loop->addTimer(0.4, function () { posix_kill(posix_getpid(), SIGUSR1); }); $loop = $this->loop; $this->loop->addTimer(0.9, function () use (&$func, $loop) {
<?php protected function forkSendSignal($signal) { $currentPid = posix_getpid(); $childPid = pcntl_fork(); if ($childPid == -1) { $this->fail("Failed to fork child process!");