about summary refs log tree commit homepage
path: root/lib/dtas/sigevent.rb
blob: 3800f4bdaf7e1c8791148b17cf146def9524ce39 (plain)
1
2
3
4
5
6
7
8
9
# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
# 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