Introduction
Introduction Statistics Contact Development Disclaimer Help
tEnforce a terminal size to reduce race conditions in too efficient apps. - st …
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 504a165277c13797840c42c64807b59cd4e5f3a5
parent 9031e228ce283cd4847832acf012a910f74ad1ed
Author: Christoph Lohmann <[email protected]>
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
tthe right. terminal size.
Diffstat:
M st.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -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");
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.