about summary refs log tree commit homepage
path: root/lib/dtas/sigevent.rb
blob: ccaec2f2ea60dc6083d9a0a91372078ea9863567 (plain)
1
2
3
4
5
6
7
8
9
10
11
# -*- encoding: binary -*-
# :stopdoc:
# 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