Christopher Vagnetoft
176f9aa5ec
* Signal dispatch() method now uses own pid as default value * SharedData now updates checksum cache on set()
16 lines
224 B
PHP
16 lines
224 B
PHP
<?php
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
use NoccyLabs\Ipc\Signal\SignalTrap;
|
|
|
|
|
|
|
|
$trap = new SignalTrap(SIGINT);
|
|
echo "Press ctrl-c...\n";
|
|
|
|
while (!$trap->isTrapped()) {
|
|
usleep(10000);
|
|
}
|
|
|
|
echo "Thanks!\n"; |