about summary refs log tree commit homepage
path: root/lib/dtas/spawn_fix.rb
blob: dfcc8840f985c684137c9a7ed02f069aeca2fc86 (plain)
1
2
3
4
5
6
7
8
module DTAS::SpawnFix # :nodoc:
  # workaround for older Rubies: https://bugs.ruby-lang.org/issues/8770
  def spawn(*args)
    super(*args)
  rescue Errno::EINTR
    retry
  end if RUBY_VERSION.to_f <= 2.1
end