This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
select doesn't work on stdin?
- From: "Ken Yee" <kenkyee at excite dot com>
- To: ecos-discuss at sourceware dot org
- Cc:
- Date: Tue, 13 Nov 2012 17:10:30 -0500
- Subject: [ECOS] select doesn't work on stdin?
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