Skip to content

Commit

Permalink
[DEX-2258] feat: add process the SIGQUIT signal
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlantir committed May 6, 2024
1 parent 06d6589 commit f48b1dc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased] - yyyy-mm-dd

## [6.4.1] - 2024-05-06

### Fixed

- Add process the SIGQUIT signal.

## [6.4.0] - 2024-05-02

### Added
Expand Down
7 changes: 7 additions & 0 deletions lib/sbmt/outbox/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ def watch_signals(worker)
$stdout.puts "Going to shut down..."
worker.stop
end

# normal kill with number 3
Signal.trap("SIGQUIT") do
$stdout.puts AsciiArt.shutdown
$stdout.puts "Going to shut down..."
worker.stop
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/sbmt/outbox/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Sbmt
module Outbox
VERSION = "6.4.0"
VERSION = "6.4.1"
end
end

0 comments on commit f48b1dc

Please sign in to comment.