Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2001 14:17:38 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        "John W. De Boskey" <jwd@bsdwins.com>
Cc:        Current List <freebsd-current@FreeBSD.ORG>
Subject:   Re: FIO* doc added to tty.4 (review)
Message-ID:  <200104171817.OAA13546@khavrinen.lcs.mit.edu>
In-Reply-To: <20010417033805.A40658@bsdwins.com>
References:  <20010415222637.A507@FreeBSD.org> <200104170209.WAA02683@khavrinen.lcs.mit.edu> <20010417033805.A40658@bsdwins.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 17 Apr 2001 03:38:05 -0400, "John W. De Boskey" <jwd@bsdwins.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104171817.OAA13546>