Sha256: 9bce8776c2d39053edd9a5bb915bdeac668526034d6ffeff795a63372475d040

Contents?: true

Size: 393 Bytes

Versions: 24

Compression:

Stored size: 393 Bytes

Contents

module Vedeu

  # 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 # Vedeu

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
vedeu-0.6.7 lib/vedeu/runtime/traps.rb
vedeu-0.6.6 lib/vedeu/runtime/traps.rb
vedeu-0.6.5 lib/vedeu/runtime/traps.rb
vedeu-0.6.4 lib/vedeu/runtime/traps.rb
vedeu-0.6.3 lib/vedeu/runtime/traps.rb
vedeu-0.6.2 lib/vedeu/runtime/traps.rb
vedeu-0.6.1 lib/vedeu/runtime/traps.rb
vedeu-0.6.0 lib/vedeu/runtime/traps.rb
vedeu-0.5.13 lib/vedeu/runtime/traps.rb
vedeu-0.5.12 lib/vedeu/runtime/traps.rb
vedeu-0.5.11 lib/vedeu/runtime/traps.rb
vedeu-0.5.10 lib/vedeu/runtime/traps.rb
vedeu-0.5.9 lib/vedeu/runtime/traps.rb
vedeu-0.5.8 lib/vedeu/runtime/traps.rb
vedeu-0.5.7 lib/vedeu/runtime/traps.rb
vedeu-0.5.6 lib/vedeu/runtime/traps.rb
vedeu-0.5.5 lib/vedeu/runtime/traps.rb
vedeu-0.5.4 lib/vedeu/runtime/traps.rb
vedeu-0.5.3 lib/vedeu/runtime/traps.rb
vedeu-0.5.2 lib/vedeu/runtime/traps.rb