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:
parent
d51bd9a487
commit
e9f1681fab
13
test/bin/signal-process.php
Normal file
13
test/bin/signal-process.php
Normal 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);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user