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
5
client.c
5
client.c
@ -523,7 +523,7 @@ client_write_open(void *data, size_t datalen)
|
|||||||
errno = EBADF;
|
errno = EBADF;
|
||||||
else {
|
else {
|
||||||
cf->fd = dup(msg->fd);
|
cf->fd = dup(msg->fd);
|
||||||
if (client_flags & CLIENT_CONTROL)
|
if (~client_flags & CLIENT_CONTROL)
|
||||||
close(msg->fd); /* can only be used once */
|
close(msg->fd); /* can only be used once */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -678,7 +678,8 @@ client_read_open(void *data, size_t datalen)
|
|||||||
errno = EBADF;
|
errno = EBADF;
|
||||||
else {
|
else {
|
||||||
cf->fd = dup(msg->fd);
|
cf->fd = dup(msg->fd);
|
||||||
close(msg->fd); /* can only be used once */
|
if (~client_flags & CLIENT_CONTROL)
|
||||||
|
close(msg->fd); /* can only be used once */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cf->fd == -1) {
|
if (cf->fd == -1) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# configure.ac
|
# configure.ac
|
||||||
|
|
||||||
AC_INIT([tmux], 3.1)
|
AC_INIT([tmux], 3.1a)
|
||||||
AC_PREREQ([2.60])
|
AC_PREREQ([2.60])
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR(etc)
|
AC_CONFIG_AUX_DIR(etc)
|
||||||
|
Loading…
Reference in New Issue
Block a user