summaryrefslogtreecommitdiffstats
path: root/tty.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-10-16 08:31:55 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-10-16 08:31:55 +0000
commitf56b4ec2ffa6d5667a3bd86040a1c771c1de33a5 (patch)
treea06294130e18067eca755eb7e91ad6faa548e55c /tty.c
parent6c42f1a89e16d69d5fe24bb8b3f6b37148cfa308 (diff)
Trying to set FD_CLOEXEC on every fd is a lost cause, just use
closefrom() before exec.
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tty.c b/tty.c
index 268ea2e8..379fa42d 100644
--- a/tty.c
+++ b/tty.c
@@ -61,9 +61,6 @@ tty_init(struct tty *tty, int fd, char *term)
tty->termname = xstrdup("unknown");
else
tty->termname = xstrdup(term);
-
- if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
- fatal("fcntl failed");
tty->fd = fd;
if ((path = ttyname(fd)) == NULL)