From 924d10507bcf7cfbdba62b22034336a629c1b800 Mon Sep 17 00:00:00 2001 From: rdbo Date: Sat, 30 Mar 2024 11:11:10 -0300 Subject: [PATCH] fixed window not closing on wayland --- st.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/st.c b/st.c index c180375f96a5d1121463b52fd07e9f95bb00da48..e67faf2165c111c2a7b1f8ddace65cef56d5a4e8 100644 --- a/st.c +++ b/st.c @@ -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