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