Sha256: 3acff4639cc13c2923de96752c250271f429e8c86f06ebbdcc20369fc2b241d4

Contents?: true

Size: 460 Bytes

Versions: 69

Compression:

Stored size: 460 Bytes

Contents

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

69 entries across 69 versions & 1 rubygems

Version Path
vedeu-0.8.0 lib/vedeu/runtime/traps.rb
vedeu-0.7.4 lib/vedeu/runtime/traps.rb
vedeu-0.7.3 lib/vedeu/runtime/traps.rb
vedeu-0.7.2 lib/vedeu/runtime/traps.rb
vedeu-0.7.1 lib/vedeu/runtime/traps.rb
vedeu-0.7.0 lib/vedeu/runtime/traps.rb
vedeu-0.6.71 lib/vedeu/runtime/traps.rb
vedeu-0.6.70 lib/vedeu/runtime/traps.rb
vedeu-0.6.69 lib/vedeu/runtime/traps.rb
vedeu-0.6.68 lib/vedeu/runtime/traps.rb
vedeu-0.6.67 lib/vedeu/runtime/traps.rb
vedeu-0.6.66 lib/vedeu/runtime/traps.rb
vedeu-0.6.65 lib/vedeu/runtime/traps.rb
vedeu-0.6.64 lib/vedeu/runtime/traps.rb
vedeu-0.6.63 lib/vedeu/runtime/traps.rb
vedeu-0.6.62 lib/vedeu/runtime/traps.rb
vedeu-0.6.61 lib/vedeu/runtime/traps.rb
vedeu-0.6.60 lib/vedeu/runtime/traps.rb
vedeu-0.6.59 lib/vedeu/runtime/traps.rb
vedeu-0.6.58 lib/vedeu/runtime/traps.rb