diff options
Diffstat (limited to 'lib/dtas/spawn_fix.rb')
-rw-r--r-- | lib/dtas/spawn_fix.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dtas/spawn_fix.rb b/lib/dtas/spawn_fix.rb new file mode 100644 index 0000000..dfcc884 --- /dev/null +++ b/lib/dtas/spawn_fix.rb @@ -0,0 +1,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 |