about summary refs log tree commit homepage
path: root/lib/dtas/sigevent.rb
blob: 78a91672b925c950baa5f4554e1812042f24b58d (plain)
1
2
3
4
5
6
7
8
9
10
# Copyright (C) 2013-2016 all contributors <dtas-all@nongnu.org>
# License: GPL-3.0+ (https://www.gnu.org/licenses/gpl-3.0.txt)
# frozen_string_literal: true
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