commit 924d10507bcf7cfbdba62b22034336a629c1b800 parent 0aa25fa6ea6a716daf86a1615f1135ed18d26b18 Author: rdbo <rdbodev@gmail.com> Date: Sat, 30 Mar 2024 11:11:10 -0300 fixed window not closing on wayland Diffstat:
| M | st.c | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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