commit | 64caf59e84c3ae1c06773bb8ec91165eeedabe6d | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Wed Sep 23 06:05:02 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Wed Sep 23 06:05:02 2009 +0000 |
tree | 0f10d742fde77ea6c07b28a3675caaad14595db8 | |
parent | 0a9005678da04b1e7783d26b02041e3973f26127 [diff] |
Don't attempt to open() the tty path, rely on the client sending its stdin fd with imsg and fatal if it doesn't, then set the FD_CLOEXEC flag in tty_init instead of tty_open to prevent them leaking into child processes if any are created between the two calls. This bumps the protocol version, so the tmux server should be killed before upgrading.