Nonblocking stdin on telnet

Andrei Chichak groups at
Wed Jul 7 15:57:48 UTC 2010

Well that was interesting. What I had almost worked. The difference was:

tcsetattr (STDIN_FILENO, TCSANOW, &newt);


>  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,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list