From owner-freebsd-bugs Sat Dec 16 22:01:15 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id WAA26548 for bugs-outgoing; Sat, 16 Dec 1995 22:01:15 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id WAA26530 for ; Sat, 16 Dec 1995 22:00:59 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id QAA26907; Sun, 17 Dec 1995 16:57:44 +1100 Date: Sun, 17 Dec 1995 16:57:44 +1100 From: Bruce Evans Message-Id: <199512170557.QAA26907@godzilla.zeta.org.au> To: jc@irbs.com, partha@Ipsilon.COM Subject: Re: ping from a background process stops for input Cc: bugs@FreeBSD.org Sender: owner-bugs@FreeBSD.org Precedence: bulk >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); > } This bug was introduced in FreeBSD-2.0. The NOKERNINFO flag tended to get stuck on while I was testing this. It is only restored for normal exits and SIGINTs. Bruce