mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Do not close stdout file descriptor in control mode since it will be needed for
printing the exit messages.
This commit is contained in:
parent
650d38962f
commit
646bfe403e
3
client.c
3
client.c
@ -523,7 +523,7 @@ client_write_open(void *data, size_t datalen)
|
||||
errno = EBADF;
|
||||
else {
|
||||
cf->fd = dup(msg->fd);
|
||||
if (client_flags & CLIENT_CONTROL)
|
||||
if (~client_flags & CLIENT_CONTROL)
|
||||
close(msg->fd); /* can only be used once */
|
||||
}
|
||||
}
|
||||
@ -678,6 +678,7 @@ client_read_open(void *data, size_t datalen)
|
||||
errno = EBADF;
|
||||
else {
|
||||
cf->fd = dup(msg->fd);
|
||||
if (~client_flags & CLIENT_CONTROL)
|
||||
close(msg->fd); /* can only be used once */
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
# configure.ac
|
||||
|
||||
AC_INIT([tmux], 3.1)
|
||||
AC_INIT([tmux], 3.1a)
|
||||
AC_PREREQ([2.60])
|
||||
|
||||
AC_CONFIG_AUX_DIR(etc)
|
||||
|
Loading…
Reference in New Issue
Block a user