<<On Tue, 17 Apr 2001 03:38:05 -0400, "John W. De Boskey" <[EMAIL PROTECTED]> 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.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message