commit | 71ede76c68104c43a9f6980564fb6283a7f19473 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Mon Aug 31 11:37:27 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Mon Aug 31 11:37:27 2009 +0000 |
tree | 06c391e5791d700d76b59c5dd3aa2a187c5a66c6 | |
parent | 2e5b3ab8bc0e0f7a36f7a901263fa720654d60ca [diff] |
Don't call tty_free unless the client is a terminal, otherwise tty_init hasn't been called and it may end up doing close(0). From Kalle Olavi Niemitalo.