[Splashy-devel] My Tests.

Pat Suwalski pats at xandros.com
Sat Feb 17 19:10:24 CET 2007


Luis wrote:
>> The line that opens the tty has a blatant error, btw:
>> "O_RDONLY|O_WRONLY" makes no sense whatsoever. It should be either-or,
>> or O_RDWR. This might be another source of problems if it does not run
>> as designed.
> 
> This might be just the problem. I can't recall exactly why we used
> both flags there. But I remember looking at examples of this and
> reading the man page for the system call. I'll try using O_RDWR.

Basically, I think write-only would be fine. I don't see any reading in
that function before the file descriptor is closed (though it doesn't
actually seem to be). Could it be that the ioctl is being written to
tty0 non-blocking, somehow preventing it from being closed?

--Pat



More information about the Splashy-devel mailing list