From f56b4ec2ffa6d5667a3bd86040a1c771c1de33a5 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 16 Oct 2010 08:31:55 +0000 Subject: Trying to set FD_CLOEXEC on every fd is a lost cause, just use closefrom() before exec. --- tty.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tty.c') 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) -- cgit