Class: KQueue::Watcher::Signal

Inherits:
KQueue::Watcher show all
Defined in:
lib/rb-kqueue/watcher/signal.rb

Overview

The KQueue::Watcher subclass for events fired when a signal is received. Signal events are watched via Queue#watch_for_signal.

Instance Attribute Summary collapse

Attributes inherited from KQueue::Watcher

#queue

Method Summary

Methods inherited from KQueue::Watcher

#add!, #delete!, #disable!, #enable!

Instance Attribute Details

#nameString (readonly)

The name of the signal, e.g. "KILL" for SIGKILL.

Returns:

  • (String)

9
10
11
# File 'lib/rb-kqueue/watcher/signal.rb', line 9

def name
  @name
end

#numberFixnum (readonly)

The number of the signal, e.g. 9 for SIGKILL.

Returns:

  • (Fixnum)

14
15
16
# File 'lib/rb-kqueue/watcher/signal.rb', line 14

def number
  @number
end