Sha256: 12104b0b5964d421e1569c43f526ab12715059b265dd706b1f24cacc30e3eb28

Contents?: true

Size: 493 Bytes

Versions: 7

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true

module Vedeu

  module Runtime

    # Vedeu can respond to various signals which are handled here.
    #
    module Traps

      # :nocov:

      Signal.trap('INT') do
        exit(1)
      end

      Signal.trap('TERM') do
        exit(1)
      end

      Signal.trap('TTIN') {}
      Signal.trap('USR1') {}
      Signal.trap('USR2') {}

      Signal.trap('SIGWINCH') { Vedeu.trigger(:_resize_) }

      # :nocov:

    end # Traps

  end # Runtime

end # Vedeu

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.8.23 lib/vedeu/runtime/traps.rb
vedeu-0.8.22 lib/vedeu/runtime/traps.rb
vedeu-0.8.21 lib/vedeu/runtime/traps.rb
vedeu-0.8.20 lib/vedeu/runtime/traps.rb
vedeu-0.8.19 lib/vedeu/runtime/traps.rb
vedeu-0.8.18 lib/vedeu/runtime/traps.rb
vedeu-0.8.17 lib/vedeu/runtime/traps.rb