Nonblocking stdin on telnet
Andrei Chichak
groups at chichak.ca
Wed Jul 7 10:57:48 CDT 2010
Well that was interesting. What I had almost worked. The difference was:
tcsetattr (STDIN_FILENO, TCSANOW, &newt);
versus
> int fd = fileno(in);
> tcsetattr(fd, TCSANOW, &newt);
STDIN_FILENO has a value of 0, whereas fileno(stdin) has a value of 9.
Thanks for all your help,
Andrei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rtems.org/pipermail/rtems-users/attachments/20100707/2a4c2b0e/attachment.html>
More information about the rtems-users
mailing list