pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9031e22
)
Enforce a terminal size to reduce race conditions in too efficient apps.
author
Christoph Lohmann
<20h@r-36.net>
Thu, 28 Jan 2016 17:09:11 +0000
(18:09 +0100)
committer
Christoph Lohmann
<20h@r-36.net>
Thu, 28 Jan 2016 17:09:11 +0000
(18:09 +0100)
dvtm is too fast in starting up. It will then have a race condition in finding
the right. terminal size.
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
98622ec
..
3a0a519
100644
(file)
--- 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");