Subject: Re: CVS commit: src/sys/kern (tty.c:1.174)
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: current-users
Date: 07/11/2005 17:48:07
In article <198aq2-qlb.ln1@pyry.gw.com>,
Christos Zoulas <christos@astron.com> wrote:
>In article <slrndd42e8.kr.mason@g.primenet.com.au>,
>Geoff Wing  <mason@primenet.com.au> wrote:
>>Christos Zoulas <christos@netbsd.org> typed:
>>: Modified Files:
>>: 	src/sys/kern: tty.c
>>: Log Message:
>>: Allow F{G,S}OWN to succeed on a tty that has no session associated with it,
>>: and it is not the controlling tty. This change allows us to use SIGIO on
>>: a non-controlling tty (eg. debug ntpd with a refclock on a tty).
>>
>>This has killed my com port mouse under XFree 4.5.0 (i386).  Previously
>>with a working mouse /var/log/XFree86.0.log would have
>>  (WW) fcntl(6, F_SETOWN): Inappropriate ioctl for device
>>
>>Anything obvious to anyone else?  (before I have to kickstart my brain)
>
>I don't know, it seems to me that before it was returning EPERM, and now
>it is returning EINVAL. It should have been failing before too.

I mis-read the previous message. It seems that before it was failing to
do the F_SETOWN so it defaulted to polling instead of using SIGIO. Now
it is using SIGIO and failing for some reason. There are no warning messages
now?

christos