mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +03:00
Resolve #1147
This commit is contained in:
parent
3c28bc6b97
commit
9eaa0f4eb5
1 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ class Logger extends \SplFixedArray
|
||||||
if (\is_callable('pcntl_signal')) {
|
if (\is_callable('pcntl_signal')) {
|
||||||
\pcntl_async_signals(true);
|
\pcntl_async_signals(true);
|
||||||
foreach (static::$SIGNALS as $SIGNAL) {
|
foreach (static::$SIGNALS as $SIGNAL) {
|
||||||
\pcntl_signal(\constant($SIGNAL), [$this, 'signalHandler']);
|
\defined($SIGNAL) && \pcntl_signal(\constant($SIGNAL), [$this, 'signalHandler']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -209,7 +209,7 @@ class Logger extends \SplFixedArray
|
||||||
}
|
}
|
||||||
if ($this->bUsed) {
|
if ($this->bUsed) {
|
||||||
foreach (static::$SIGNALS as $SIGNAL) {
|
foreach (static::$SIGNALS as $SIGNAL) {
|
||||||
if (\constant($SIGNAL) == $signo) {
|
if (\defined($SIGNAL) && \constant($SIGNAL) == $signo) {
|
||||||
$this->Write("Caught {$SIGNAL}");
|
$this->Write("Caught {$SIGNAL}");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue