Sha256: 927541462d3d7aeed4da761aa5d7e862e2a7a5ef7229c56af42893c2dc20f38b

Contents?: true

Size: 432 Bytes

Versions: 12

Compression:

Stored size: 432 Bytes

Contents

module Vedeu

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

    # :nocov:
    Signal.trap('INT') do
      puts
      exit(1)
    end

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

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

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

  end # Traps

end # Vedeu

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vedeu-0.4.56 lib/vedeu/traps.rb
vedeu-0.4.55 lib/vedeu/traps.rb
vedeu-0.4.54 lib/vedeu/traps.rb
vedeu-0.4.53 lib/vedeu/traps.rb
vedeu-0.4.52 lib/vedeu/traps.rb
vedeu-0.4.51 lib/vedeu/traps.rb
vedeu-0.4.50 lib/vedeu/traps.rb
vedeu-0.4.49 lib/vedeu/traps.rb
vedeu-0.4.48 lib/vedeu/traps.rb
vedeu-0.4.47 lib/vedeu/traps.rb
vedeu-0.4.46 lib/vedeu/traps.rb
vedeu-0.4.45 lib/vedeu/traps.rb