1
0
mirror of https://github.com/danog/process.git synced 2024-11-26 12:14:43 +01:00

Missed adding signal test script

Whoops…
This commit is contained in:
Aaron Piotrowski 2019-02-26 10:22:25 -06:00
parent d51bd9a487
commit e9f1681fab
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -0,0 +1,13 @@
<?php
require dirname(__DIR__, 2) . '/vendor/autoload.php';
Amp\Loop::run(function () {
Amp\Loop::unreference(Amp\Loop::onSignal(\SIGTERM, function () {
exit(42);
}));
Amp\Loop::delay(1000, function () {
exit(0);
});
});