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.6.36 lib/vedeu/runtime/traps.rb
vedeu-0.6.35 lib/vedeu/runtime/traps.rb
vedeu-0.6.34 lib/vedeu/runtime/traps.rb
vedeu-0.6.33 lib/vedeu/runtime/traps.rb
vedeu-0.6.32 lib/vedeu/runtime/traps.rb
vedeu-0.6.31 lib/vedeu/runtime/traps.rb
vedeu-0.6.30 lib/vedeu/runtime/traps.rb
vedeu-0.6.29 lib/vedeu/runtime/traps.rb
vedeu-0.6.28 lib/vedeu/runtime/traps.rb
vedeu-0.6.27 lib/vedeu/runtime/traps.rb
vedeu-0.6.26 lib/vedeu/runtime/traps.rb
vedeu-0.6.25 lib/vedeu/runtime/traps.rb
vedeu-0.6.24 lib/vedeu/runtime/traps.rb
vedeu-0.6.23 lib/vedeu/runtime/traps.rb
vedeu-0.6.22 lib/vedeu/runtime/traps.rb
vedeu-0.6.21 lib/vedeu/runtime/traps.rb
vedeu-0.6.20 lib/vedeu/runtime/traps.rb
vedeu-0.6.19 lib/vedeu/runtime/traps.rb
vedeu-0.6.18 lib/vedeu/runtime/traps.rb
vedeu-0.6.17 lib/vedeu/runtime/traps.rb