I've got a program that makes some ioctl calls to the serial driver to
check the line status register.
This program runs *FINE* if run while logged in on a virtual terminal.
Yes, I'm logged on as root when I run it.
This program fails if run from a shell via telnet. Specifically, the
icotl call returns -1 and errno is "I/O Error" - ie, the call to check
the LSR fails. I log in remotely as myself then su to root to run the
This program fails the same way if it is started on boot from rc.local.
The only way I can successfully run the program is to log on to a
local virtual terminal and run it. Considering this is a remote
gateway application machine that has to run on a mountain (away from
humans) this is not acceptable.
I'm suspecting this has something to do with the controlling terminal,
but I'm not sure. But *why*??? I can't see how they are related, but
they evidently are.
Anyone have a clue? Help would be most appreciated!!!
OBTW: system is linux 2.0.23