Fix the incomplete merge from upstream (78adbd2)

Ref. https://git.suckless.org/st/commit/1d3142da968da7f6f61f1c1708f39ca233eda150.html
This commit is contained in:
veltza 2022-07-09 11:55:26 +03:00
parent ac9f541965
commit 64aa505248
1 changed files with 0 additions and 2 deletions

2
st.c
View File

@ -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__