Browse Source

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.
master
Christoph Lohmann 8 years ago
parent
commit
504a165277
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      st.c

+ 2
- 0
st.c View File

@ -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");


Loading…
Cancel
Save