joyent/libuv — pull request #956 by bnoordhuis (2013-10-18 15:04:23+00:00)
Title: unix: make uv_tty_reset_mode() async signal-safe

Make uv_tty_reset_mode() async signal-safe and add some atomic operations and a spinlock type while we're here.

Suggested reviewer: @sam-github?