[ruby-core:60885] [ruby-trunk - Bug #8770] [PATCH] process.c: avoid EINTR from Process.spawn

From: naruse@...
Date: 2014-02-20 04:01:30 UTC
List: ruby-core #60885
Issue #8770 has been updated by Yui NARUSE.

ruby -v changed from - to 44687,44706,44727
Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: REQUIRED, 2.0.0: REQUIRED, 2.1: REQUIRED

COMMITS: 44687,44706,44727

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

* Author: Eric Wong
* Status: Assigned
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* Category: 
* Target version: 
* ruby -v: 44687,44706,44727
* 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/

In This Thread