Project

General

Profile

Bug #8770

[PATCH] process.c: avoid EINTR from Process.spawn

Added by normalperson (Eric Wong) about 7 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
44687,44706,44727
Backport:
[ruby-core:56524]

Description

(send_child_error): retry write on EINTR
(recv_child_error): retry read on EINTR

I've been getting occasional Errno::EINTR from Process.spawn with
just the prog name in the error message. This is probably the cause
of it, as I haven't been able to get a consistent reproduction of
the Errno::EINTR.

I've been hitting this on 2.0.0-p247, so it probably needs backport.


Files

0001-process.c-avoid-EINTR-from-Process.spawn.patch (3.18 KB) 0001-process.c-avoid-EINTR-from-Process.spawn.patch avoid EINTR from Process.spawn normalperson (Eric Wong), 08/11/2013 11:39 AM

Also available in: Atom PDF