Don't call event_add again if the event is already pending, from Conor

Taylor in GitHub issue 4848.
This commit is contained in:
nicm
2026-02-10 08:30:21 +00:00
parent 19b9a34c48
commit b7939eb266

3
tty.c
View File

@@ -628,7 +628,8 @@ tty_add(struct tty *tty, const char *buf, size_t len)
if (tty_log_fd != -1)
write(tty_log_fd, buf, len);
if (tty->flags & TTY_STARTED)
if ((tty->flags & TTY_STARTED) &&
!event_pending(&tty->event_out, EV_WRITE, NULL))
event_add(&tty->event_out, NULL);
}