From: Christian Hesse <[email protected]>

We are ignoring return value of dup(), so just remove it.

Signed-off-by: Christian Hesse <[email protected]>
---
 st.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/st.c b/st.c
index b89d094..406afa8 100644
--- a/st.c
+++ b/st.c
@@ -1321,7 +1321,6 @@ ttynew(void) {
                if((cmdfd = open(opt_line, O_RDWR)) < 0)
                        die("open line failed: %s\n", strerror(errno));
                close(STDIN_FILENO);
-               dup(cmdfd);
                stty();
                return;
        }
-- 
2.4.5


Reply via email to