about summary refs log tree commit homepage
path: root/lib/dtas/spawn_fix.rb
blob: f02e26f2052b52425d3b048d5872a10ccce19396 (plain)
1
2
3
4
5
6
7
8
9
10
# Copyright (C) 2013-2015 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