Rtems telnetd/shell question
Joel Sherrill
joel.sherrill at OARcorp.com
Tue Oct 27 21:59:43 UTC 2009
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'm initializing it simply, similar to an example I saw:
>
> static void sh_wrap( char *dev, void *arg)
> {
> (void)rtems_shell_main_loop(arg);
> }
>
> rtems_telnetd_config_table rtems_telnetd_config = {
> sh_wrap, /* Command */
> NULL, /* Argument */
> 0, /* Priority */
> RTEMS_MINIMUM_STACK_SIZE * 16, /* task stack size */
> 0, /* Login check */
> 0 /* Keep stdio of the caller */
> };
>
> rtems_telnetd_initialize();
>
> 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.
>
> Peter
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-users
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list