Rtems telnetd/shell question (and Why does fgetc() return 0 for a 0-length socket read?)

Peter Dufault dufault at hda.com
Wed Nov 4 13:19:02 UTC 2009


On Nov 4, 2009, at 7:26 , Peter Dufault wrote:

> I think it is a compiler issue.  The 0 return from fgetc() is most  
> likely an artifact of debugging an optimized binary.

Please ignore everything I said.  I was confused by the fact that gdb  
is printing out 0 for shell_env->forever.

The real issue is that rtems_current_shell_env->forever is set, and  
that is why it is looping forever.

Peter



More information about the users mailing list