st

simple terminal

git clone https://9o.is/git/st.git

commit 596cf5fd22bd5a76f7e57025e91c80809aeb3b9f
parent d0cb03a910175ad17030e1de7b0b8907fb7d11f0
Author: Christoph Lohmann <20h@r-36.net>
Date:   Thu, 28 Jan 2016 18:09:11 +0100

Enforce a terminal size to reduce race conditions in too efficient apps.

dvtm is too fast in starting up. It will then have a race condition in finding
the right. terminal size.

Diffstat:
Mst.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/st.c b/st.c @@ -1440,6 +1440,8 @@ ttynew(void) if (openpty(&m, &s, NULL, NULL, &w) < 0) die("openpty failed: %s\n", strerror(errno)); + ttyresize(); + switch (pid = fork()) { case -1: die("fork failed\n");