Subject: Re: Review wsdisplay status device
To: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 06/25/2002 10:43:16
On Tue, 25 Jun 2002, Juergen Hannken-Illjes wrote:

> On Mon, Jun 24, 2002 at 04:11:43PM -0700, Bill Studenmund wrote:
> > I think the important question would be though does the code keep checking
> > for events? If it does, then it seems like it's doing the best it can.
> >
> > Or was your complaint something else?
>
> Depends on the /* XXX */. If this is a "draw some characters to screen" an
> overseen screen switch would yield "interesting" results.
>
> What about locking instead of event monitoring? Something like:
>
> 		ioctl(fd, WSDISPLAY_LOCK, &on);
>
> 		/* XXX */
>
> 		ioctl(fd, WSDISPLAY_LOCK, &off);

That would work. But also don't forget that this is a copy&paste in text
mode project (at least it was last time I dived into it). So if we're
pasting, we're doing it at the user's request. So if the user hit the
paste click as a screen was changing (because the user hit the
change-screen key), well, weird stuff can happen. "Don't do that," comes
to mind. :-)

Take care,

Bill