]> git.lizzy.rs Git - rust.git/commit
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)
commit792da8424f4f422c2750607dcc243315fdff9fc3
tree379b00baf982ea5b67c998f7f94f61e7af21eaf2
parente86e1d88b2842671123d0a072d00c94bd3f39264
parent65cca4bd3fa0abe1000662014b3e3ea1420728f5
auto merge of #12823 : alexcrichton/rust/issue-12666, r=pcwalton

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