From: Eric Wong Date: 2015-07-14T09:17:50+00:00 Subject: [ruby-core:69965] Re: [Ruby trunk - Bug #11350] When Process.exec failed, redirections were still changed and not restored 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).