about summary refs log tree commit homepage
path: root/lib/dtas/sigevent
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-01-20 01:33:38 +0000
committerEric Wong <e@80x24.org>2015-01-20 02:08:44 +0000
commit65bb4baf0e479ff7cfbf0a8422824834c9f06ab1 (patch)
tree9a0bc4866c5d9e3ad5a896ddb814542dd29f902d /lib/dtas/sigevent
parent51e6240767b394e255d05a0f712a1da853485e82 (diff)
downloaddtas-65bb4baf0e479ff7cfbf0a8422824834c9f06ab1.tar.gz
Hopefully this makes the code less daunting to newcomers
Diffstat (limited to 'lib/dtas/sigevent')
-rw-r--r--lib/dtas/sigevent/efd.rb3
-rw-r--r--lib/dtas/sigevent/pipe.rb3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/dtas/sigevent/efd.rb b/lib/dtas/sigevent/efd.rb
index dc526f2..26c8025 100644
--- a/lib/dtas/sigevent/efd.rb
+++ b/lib/dtas/sigevent/efd.rb
@@ -1,5 +1,8 @@
 # Copyright (C) 2013-2015 all contributors <dtas-all@nongnu.org>
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+
+# used in various places for safe wakeups from IO.select via signals
+# This requires a modern Linux system and the "sleepy_penguin" RubyGem
 class DTAS::Sigevent < SleepyPenguin::EventFD # :nodoc:
   def self.new
     super(0, :CLOEXEC)
diff --git a/lib/dtas/sigevent/pipe.rb b/lib/dtas/sigevent/pipe.rb
index f510385..4f42909 100644
--- a/lib/dtas/sigevent/pipe.rb
+++ b/lib/dtas/sigevent/pipe.rb
@@ -1,5 +1,8 @@
 # Copyright (C) 2013-2015 all contributors <dtas-all@nongnu.org>
 # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
+
+# used in various places for safe wakeups from IO.select via signals
+# A fallback for non-Linux systems lacking the "sleepy_penguin" RubyGem
 class DTAS::Sigevent # :nodoc:
   attr_reader :to_io