summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2016-01-28 18:09:11 +0100
committerChristoph Lohmann <20h@r-36.net>2016-01-28 18:09:11 +0100
commit504a165277c13797840c42c64807b59cd4e5f3a5 (patch)
tree9ea79130f5e9161ba44a5f72c401f98baaef4727 /st.c
parent9031e228ce283cd4847832acf012a910f74ad1ed (diff)
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 (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index 98622ec..3a0a519 100644
--- 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");