Skip to content

Commit

Permalink
Merge branch 'feat/DEX-2258/process_SIGQUIT_signal' into 'master'
Browse files Browse the repository at this point in the history
[DEX-2258] feat: add process the SIGQUIT signal

Closes DEX-2258

See merge request nstmrt/rubygems/outbox!92
  • Loading branch information
bibendi committed May 7, 2024
2 parents 06d6589 + f48b1dc commit b9e40a8
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 b9e40a8

Please sign in to comment.