From c22505bf5a5133227ba61e0f8b9e4ba795121097 Mon Sep 17 00:00:00 2001 From: diman Date: Sun, 3 Feb 2008 21:39:23 +0000 Subject: [PATCH] fixed tty_init to be skipped if --noninteractive was given on the command line --- nmap_tty.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nmap_tty.cc b/nmap_tty.cc index 8ce557e9f..08dc1e043 100644 --- a/nmap_tty.cc +++ b/nmap_tty.cc @@ -207,6 +207,9 @@ void tty_init() { struct termios ti; + if(o.noninteractive) + return; + if (tty_fd) return;