~kris/suckless

st

bddc8b04d690887ea6f8da6ff9aee7f9785e7e84 — Sidhanth Rathod 2 years ago 22385ca + 924d105
Merge pull request #64 from rdbo/window-close-fix

Fixes window not closing (#63)
1 files changed, 6 insertions(+), 0 deletions(-)

M st.c
M st.c => st.c +6 -0
@@ 965,8 965,14 @@ ttyresize(int tw, int th)
void
ttyhangup()
{
	/* disable signal handler (fixes window not closing) */
	signal(SIGCHLD, SIG_IGN);

	/* Send SIGHUP to shell */
	kill(pid, SIGHUP);

	/* forcefully die */
	die("tty was hung up\n");
}

int