Rtems telnetd/shell question
Chris Johns
chrisj at rtems.org
Wed Oct 28 10:11:34 UTC 2009
Joel Sherrill wrote:
> Well I should have read this before I posted. I saw
> a private question about this scenario and duplicated it.
> This is the same thing I am seeing with telnetd.
> In 4.9, you got the login prompt again but reconnection
> worked.
>
> --joel
>
> Peter Dufault wrote:
>> I'm trying to use the RTEMS shell with the RTEMS telnetd, and it
>> hangs when I close down telnet. If I close down the telnet session
>> the shell task that was spawned by telnetd gets stuck forever in
>> rtems_shell_line_editor() in the "empty line" logic at line 755 where
>> it thinks it read a blank line, tries to prompt and doesn't see the
>> error, and loops forever.
>>
I suspect we need to handle a read of the fd better. Closing a remote
end of a socket always returns a length of 0. I do not know how this is
handled with fget.
>> I can't "exit" the telnet shell, either, it just restarts itself
>> without closing the telnet connection. I tried detecting the error
>> when the shell printed the prompt and treating it as an EOF but that
>> doesn't help, it must be trying to restart itself.
>>
Hmmm, I agree with you that the session should end.
Peter, any chance you can look at this for us ?
Regards
Chris
More information about the users
mailing list