Sha256: 5450d68a1e6544ef717aafd76283359b3272fc763cd057053256aaf60bd7e22d

Contents?: true

Size: 404 Bytes

Versions: 8

Compression:

Stored size: 404 Bytes

Contents

module Vedeu

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

    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_) }

  end # Traps

end # Vedeu

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vedeu-0.4.44 lib/vedeu/traps.rb
vedeu-0.4.43 lib/vedeu/traps.rb
vedeu-0.4.42 lib/vedeu/traps.rb
vedeu-0.4.41 lib/vedeu/traps.rb
vedeu-0.4.40 lib/vedeu/traps.rb
vedeu-0.4.39 lib/vedeu/traps.rb
vedeu-0.4.38 lib/vedeu/traps.rb
vedeu-0.4.37 lib/vedeu/traps.rb