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