Eric Wong <normalperson / yhbt.net> wrote:
> I started working on this patch which causes pipes to always
> be closed during timer thread shutdown.
> 
> http://80x24.org/spew/m/839ba256acbf1a5b17ad60953fc3ecf1df6cec50.txt

OK, need to check FD validity, too.  Still tricky:
http://80x24.org/spew/m/1437379741-6844-1-git-send-email-e / 80x24.org.txt

> However, I may also eliminate timer thread entirely (on POSIX) by
> using timer_create+timer_settime to deliver SIGVTALRM.

Maybe...