From owner-freebsd-current Tue Apr 17 11:18:19 2001 Delivered-To: freebsd-current@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id 4C60437B622 for ; Tue, 17 Apr 2001 11:18:05 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id OAA13546; Tue, 17 Apr 2001 14:17:38 -0400 (EDT) (envelope-from wollman) Date: Tue, 17 Apr 2001 14:17:38 -0400 (EDT) From: Garrett Wollman Message-Id: <200104171817.OAA13546@khavrinen.lcs.mit.edu> To: "John W. De Boskey" Cc: Current List Subject: Re: FIO* doc added to tty.4 (review) In-Reply-To: <20010417033805.A40658@bsdwins.com> References: <20010415222637.A507@FreeBSD.org> <200104170209.WAA02683@khavrinen.lcs.mit.edu> <20010417033805.A40658@bsdwins.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < said: > ie: FIONREAD will succeed from a backgrounded process, but the > data read itself with hang (tty driver). You are describing a general property of the terminal subsystem, which any process dealing with terminals needs to be aware of. (AFAIK, ioctl(tty, FIONREAD, &n) should set n to zero if the process is in the background; if it does not that's probably a bug.) The new POSIX revision group discussed this briefly in the mailing-list, but the group did not want to innovate in this area. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message