Class: KQueue::Watcher::Signal
- Inherits:
-
KQueue::Watcher
- Object
- KQueue::Watcher
- KQueue::Watcher::Signal
- 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
-
#name ⇒ String
readonly
The name of the signal, e.g.
-
#number ⇒ Fixnum
readonly
The number of the signal, e.g.
Attributes inherited from KQueue::Watcher
Method Summary
Methods inherited from KQueue::Watcher
#add!, #delete!, #disable!, #enable!
Instance Attribute Details
#name ⇒ String (readonly)
The name of the signal, e.g. "KILL" for SIGKILL.
9 10 11 |
# File 'lib/rb-kqueue/watcher/signal.rb', line 9 def name @name end |
#number ⇒ Fixnum (readonly)
The number of the signal, e.g. 9 for SIGKILL.
14 15 16 |
# File 'lib/rb-kqueue/watcher/signal.rb', line 14 def number @number end |