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 */