Skip to content

Commit

Permalink
Fix: properly stop in apline containers
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Jul 15, 2024
1 parent 3aa73bd commit 3aac336
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Magic.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ public static function start(bool $light): void
}
throw new SignalException('SIGTERM received');
}));
EventLoop::unreference(EventLoop::onSignal(SIGQUIT, static function (): void {
if (self::$suspendPeriodicLogging) {
self::togglePeriodicLogging();
}
throw new SignalException('SIGQUIT received');
}));
} catch (Throwable $e) {
}
}
Expand Down

0 comments on commit 3aac336

Please sign in to comment.