]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #12823 : alexcrichton/rust/issue-12666, r=pcwalton
authorbors <bors@rust-lang.org>
Thu, 13 Mar 2014 05:36:40 +0000 (22:36 -0700)
committerbors <bors@rust-lang.org>
Thu, 13 Mar 2014 05:36:40 +0000 (22:36 -0700)
If a TTY fails to get initialized, it still needs to have uv_close invoked on
it. This fixes the problem by constructing the TtyWatcher struct before the call
to uv_tty_init. The struct has a destructor on it which will close the handle
properly.

Closes #12666


Trivial merge