Skip to content

Commit 10ed300

Browse files
committed
apply code suggestions from code review
1 parent 70ba1b8 commit 10ed300

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
"ext-memcached": "If you use Cache class MemcachedHandler with Memcached",
4747
"ext-mysqli": "If you use MySQL",
4848
"ext-oci8": "If you use Oracle Database",
49+
"ext-pcntl": "If you use Signals",
4950
"ext-pgsql": "If you use PostgreSQL",
51+
"ext-posix": "If you use Signals",
5052
"ext-readline": "Improves CLI::input() usability",
5153
"ext-redis": "If you use Cache class RedisHandler",
5254
"ext-simplexml": "If you format XML",

system/CLI/SignalTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ protected function registerSignals(
123123
if (pcntl_signal($signal, [$this, 'handleSignal'])) {
124124
$this->registeredSignals[] = $signal;
125125
} else {
126+
$signal = $this->getSignalName($signal);
126127
CLI::write("Failed to register handler for signal: {$signal}", 'red');
127128
}
128129
}

0 commit comments

Comments
 (0)