[ruby-core:69965] Re: [Ruby trunk - Bug #11350] When Process.exec failed, redirections were still changed and not restored

From: Eric Wong <normalperson@...>
Date: 2015-07-14 09:17:50 UTC
List: ruby-core #69965
ngotogenome@gmail.com wrote:
> To avoid ASYNC BUG, is it possible to close timer-thread pipe after
> stopping the timer thread, and when Process.exec fails, to open the
> timer-thread pipe again before re-starting the timer thread?

Yes.  And we should always lazy start the timer thread to avoid
wasting resources on single-threaded scripts.

If nobody else does this soon, I will try it in a few weeks (currently
busy with other stuff).

In This Thread

Prev Next