From 371a64173cdebdede6923aa44eaa3b58481c27d5 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Tue, 8 Jan 2008 05:12:05 +0000 Subject: [PATCH] Remove closing of ttys that slipped in improperly. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1494 fd59a12c-fef9-0310-b244-a6a79926bd2f --- exec/main.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/exec/main.c b/exec/main.c index e5d6c300..2aed731b 100644 --- a/exec/main.c +++ b/exec/main.c @@ -283,14 +283,6 @@ static void aisexec_tty_detach (void) int lpc, fd; struct rlimit oflimits; - /* - * close all open files - */ - getrlimit(RLIMIT_NOFILE, &oflimits); - for (lpc = 0; lpc < oflimits.rlim_cur; lpc++) { - close(lpc); - } - /* * Disconnect from TTY if this is not a debug run */