Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 1995 16:11:51 -0600
From:      Warner Losh <imp@village.org>
To:        hackers@freebsd.org
Subject:   ENOTTY????
Message-ID:  <199507172211.QAA08206@rover.village.org>

next in thread | raw e-mail | index | archive | help
Under what cases will a read return ENOTTY in FreeBSD 2.0R?  I can't
seem to find it in the kernel sources...  That's not a ioctl (which I
can find), but a read.  Any ideas?

What I'm seeing that is that, under heavy load (56700bps) TIA is
exiting because a read returned -1 and errno is set to ENOTTY.  I've
placed a breakpoint at close, and I know I'm not closing the TTY fd.
The fd is in raw mode.  I didn't see a ENOTTY as a possible error code
in the read(2) man page, and the entry for ENOTTY in the errno.h file
just says the ioctl is only for ttys and this fd isn't a tty (but it
is!).  No signals appear to be generated, and I'm fairly sure that
carrier isn't being dropped (it is a direct line, null modem).

Normally, I don't like to ask these sorts of questions, but this
smells like a kernel bug.

Comments?

Warner



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