This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 21968] select does not work on stdin
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Sun, 18 Nov 2012 17:25:56 +0000
- Subject: [Bug 21968] select does not work on stdin
- Auto-submitted: auto-generated
- References: <bug-21968-13@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=21968
--- Comment #6 from Jonathan Larmour <jifl@ecoscentric.com> 2012-11-18 17:25:54 GMT ---
(In reply to comment #5)
> (In reply to comment #3)
> Hi Ken,
>
> the code in this sample is inherently worng.
> The assumption is wrong that fd 0 is always connected to stdin.
> the right file handle would be fileno(stdin);
>
> what is fileno(stdin) in your environment?
In fairness, in eCos, if stdin exists at all, it is fd 0.
Jifl
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.