Sha256: 1c54f06f79ffdbf3cd104adf092ed33e0d805617d943485c47ac8a63cf4bd881

Contents?: true

Size: 415 Bytes

Versions: 7

Compression:

Stored size: 415 Bytes

Contents

module Vedeu

  # Vedeu can respond to various signals which are handled here.
  #
  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

7 entries across 7 versions & 1 rubygems

Version Path
vedeu-0.4.63 lib/vedeu/traps.rb
vedeu-0.4.62 lib/vedeu/traps.rb
vedeu-0.4.61 lib/vedeu/traps.rb
vedeu-0.4.60 lib/vedeu/traps.rb
vedeu-0.4.59 lib/vedeu/traps.rb
vedeu-0.4.58 lib/vedeu/traps.rb
vedeu-0.4.57 lib/vedeu/traps.rb