about summary refs log tree commit homepage
path: root/lib/dtas/spawn_fix.rb
blob: a510a9efa63f047aab7193023e1c106189eba5d5 (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>
# workaround for older Rubies: https://bugs.ruby-lang.org/issues/8770
module DTAS::SpawnFix # :nodoc:
  def spawn(*args)
    super(*args)
  rescue Errno::EINTR
    retry
  end if RUBY_VERSION.to_f <= 2.1
end