public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] select doesn't work on stdin?
@ 2012-11-13 22:10 Ken Yee
  0 siblings, 0 replies; only message in thread
From: Ken Yee @ 2012-11-13 22:10 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-13 22:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-13 22:10 [ECOS] select doesn't work on stdin? Ken Yee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).