mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
Merge pull request #74 from veltza/fix-incomplete-merge
Fix the incomplete merge from upstream (78adbd2
)
This commit is contained in:
commit
4ccd248a50
2
st.c
2
st.c
@ -1073,8 +1073,6 @@ ttynew(const char *line, char *cmd, const char *out, char **args)
|
|||||||
dup2(s, 2);
|
dup2(s, 2);
|
||||||
if (ioctl(s, TIOCSCTTY, NULL) < 0)
|
if (ioctl(s, TIOCSCTTY, NULL) < 0)
|
||||||
die("ioctl TIOCSCTTY failed: %s\n", strerror(errno));
|
die("ioctl TIOCSCTTY failed: %s\n", strerror(errno));
|
||||||
close(s);
|
|
||||||
close(m);
|
|
||||||
if (s > 2)
|
if (s > 2)
|
||||||
close(s);
|
close(s);
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
|
Loading…
Reference in New Issue
Block a user