about summary refs log tree commit homepage
path: root/lib/dtas/sigevent.rb
blob: 303459a578e23db4b04f24107d5731bf77caa8c9 (plain)
1
2
3
4
5
6
7
8
9
# Copyright (C) 2013-2015 all contributors <dtas-all@nongnu.org>
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
begin
  raise LoadError, "no eventfd with _DTAS_POSIX" if ENV["_DTAS_POSIX"]
  require 'sleepy_penguin'
  require_relative 'sigevent/efd'
rescue LoadError
  require_relative 'sigevent/pipe'
end