I'm trying to add a shell console to our system and select() doesn't seem to work w/ stdin. I do a select() followed by a read() to get an unbuffered char. The select is always true and then it goes into the read immediately which ends up in COMM_IF_GETC on the stack dump which then blocks all other threads until it returns (you can hit keys to get it to continue).
I'm assuming this is a bug in select(), but has anyone done something like this and have a workaround? The diag output is also sent to the same port but there is no diag output at the time so that shouldn't matter. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss