Issue #8770 has been updated by Eric Wong.


 nobu / ruby-lang.org wrote:
 > Oops, I missed to include the reference in r44706.
 
 No worries.  Interesting, now I notice test_process now fails under
 heavy load with this patch...
 
 This should fix things: http://bogomips.org/ruby.git/patch?id=81b6f37afe34
 
   git://80x24.org/ruby.git test_process-avoid-teardown

----------------------------------------
Bug #8770: [PATCH] process.c: avoid EINTR from Process.spawn
https://bugs.ruby-lang.org/issues/8770#change-44598

* Author: Eric Wong
* Status: Closed
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: core
* Target version: 2.1.0
* ruby -v: ruby 2.1.0dev (2013-08-10 trunk 42491) [x86_64-linux]
* Backport: 1.9.3: REQUIRED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
(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)


-- 
http://bugs.ruby-lang.org/