From owner-freebsd-bugs Sat Dec 16 18:21:50 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA17031 for bugs-outgoing; Sat, 16 Dec 1995 18:21:50 -0800 (PST) Received: from irbs.irbs.com (irbs.com [199.182.75.129]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA17026 for ; Sat, 16 Dec 1995 18:21:47 -0800 (PST) Received: (from jc@localhost) by irbs.irbs.com (8.6.12/8.6.6) id VAA03563; Sat, 16 Dec 1995 21:20:41 -0500 From: John Capo Message-Id: <199512170220.VAA03563@irbs.irbs.com> Subject: Re: ping from a background process stops for input To: partha@Ipsilon.COM (Partha Saraty) Date: Sat, 16 Dec 1995 21:20:40 -0500 (EST) Cc: bugs@FreeBSD.org In-Reply-To: <199512170037.QAA23976@mailhost.Ipsilon.COM> from "Partha Saraty" at Dec 16, 95 04:37:08 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-bugs@FreeBSD.org Precedence: bulk Partha Saraty writes: > > > When I do a ping and place the stdout in a file from a > background process, it waits for tty input and doesn't > continue. Is this a known problem? Is there a > workaround? Any help would be appreciated. > Redirect ping's input from /dev/null or remove this piece of code from ping.c:165. if (tcgetattr (0, &ts) != -1) { reset_kerninfo = !(ts.c_lflag & NOKERNINFO); ts.c_lflag |= NOKERNINFO; tcsetattr (0, TCSANOW, &ts); } John Capo IRBS Engineering (305) 792-9551