Merge pull request #74 from veltza/fix-incomplete-merge

Fix the incomplete merge from upstream (78adbd2)
This commit is contained in:
Stein Gunnar Bakkeby 2022-07-10 17:07:29 +02:00 committed by GitHub
commit 4ccd248a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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__