Subject: Fwd: async io in netbsd
To: None <tech-kern@NetBSD.ORG>
List: tech-kern
Date: 08/12/1997 17:02:00
MIME-Version: 1.0
Content-Type:text/plain; charset="us-ascii"

On Tue, Aug 12, 1997 at 11:56:17AM +0200, Ignatios Souvatzis wrote:
> > 	Does netbsd1.2.1 has async io support for files, and for sockets ie. 
> > when the data comes to the file descriptor SIGIO signal is sent to the process. 
> Yes. 
> See "man 2 fcntl", especially the section about F_GETFL / F_SETFL and the
> flags O_ASYNC and O_NONBLOCK.

You mean F_SETOWN.. Btw, there is (I think) a bug in async io handling
for ttys. F_SETOWN is implemented using TIOCSPGRP, and the code for
TIOCSPGRP only allows the operation on a controlling tty. Which is
too restrictive for async I/O. I didn't get any reaction when mailing
on tech-kern about this 2 years ago (I think), so I guess I'll just
change the code.

If anyone can come up with a good reason why this restriction applies to
F_SETOWN as well, tell me.

- Frank