From 64aa505248e1ed8c1ce6e145c8b6bce2197155e0 Mon Sep 17 00:00:00 2001 From: veltza <106755522+veltza@users.noreply.github.com> Date: Sat, 9 Jul 2022 11:55:26 +0300 Subject: [PATCH] Fix the incomplete merge from upstream (78adbd2) Ref. https://git.suckless.org/st/commit/1d3142da968da7f6f61f1c1708f39ca233eda150.html --- st.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/st.c b/st.c index 53d39e2..5ea8cad 100644 --- a/st.c +++ b/st.c @@ -1073,8 +1073,6 @@ ttynew(const char *line, char *cmd, const char *out, char **args) dup2(s, 2); if (ioctl(s, TIOCSCTTY, NULL) < 0) die("ioctl TIOCSCTTY failed: %s\n", strerror(errno)); - close(s); - close(m); if (s > 2) close(s); #ifdef __OpenBSD__