[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Rtems telnetd/shell question (and Why does fgetc() return 0 for a 0-length socket read?)
- Date: Wed, 4 Nov 2009 08:19:02 -0500
- From: dufault at hda.com (Peter Dufault)
- Subject: Rtems telnetd/shell question (and Why does fgetc() return 0 for a 0-length socket read?)
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