dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 3351302381b325ce1964407de8f71ce7b6756a16
parent f1caa1eb2197610b1f3233493c525969a5bca246
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 25 Oct 2014 20:18:39 +0200

Fix resize bug

Commit 3b084ae3 blocked signal in order to avoid a race condition.
We need to unblock SIGWINCH (and other signals) in child processes
otherwise clients won't redraw properly.

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

diff --git a/vt.c b/vt.c @@ -1489,6 +1489,10 @@ pid_t vt_forkpty(Vt *t, const char *p, const char *argv[], const char *cwd, cons if (pid == 0) { setsid(); + sigset_t emptyset; + sigemptyset(&emptyset); + sigprocmask(SIG_SETMASK, &emptyset, NULL); + if (to) { close(vt2ed[1]); dup2(vt2ed[0], STDIN_FILENO);