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.57 lib/vedeu/runtime/traps.rb
vedeu-0.6.56 lib/vedeu/runtime/traps.rb
vedeu-0.6.54 lib/vedeu/runtime/traps.rb
vedeu-0.6.53 lib/vedeu/runtime/traps.rb
vedeu-0.6.52 lib/vedeu/runtime/traps.rb
vedeu-0.6.51 lib/vedeu/runtime/traps.rb
vedeu-0.6.50 lib/vedeu/runtime/traps.rb
vedeu-0.6.49 lib/vedeu/runtime/traps.rb
vedeu-0.6.48 lib/vedeu/runtime/traps.rb
vedeu-0.6.47 lib/vedeu/runtime/traps.rb
vedeu-0.6.46 lib/vedeu/runtime/traps.rb
vedeu-0.6.45 lib/vedeu/runtime/traps.rb
vedeu-0.6.44 lib/vedeu/runtime/traps.rb
vedeu-0.6.43 lib/vedeu/runtime/traps.rb
vedeu-0.6.42 lib/vedeu/runtime/traps.rb
vedeu-0.6.41 lib/vedeu/runtime/traps.rb
vedeu-0.6.40 lib/vedeu/runtime/traps.rb
vedeu-0.6.39 lib/vedeu/runtime/traps.rb
vedeu-0.6.38 lib/vedeu/runtime/traps.rb
vedeu-0.6.37 lib/vedeu/runtime/traps.rb