Why does select(2) consider fd readable after newline instead of EOF?

后端 未结 0 1218
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-13 23:58

I have this simple snippet from client:

...
//streamfd (usually stdin) is readable
        if (FD_ISSET(streamfd, &rset))
        {
            if ((bytes         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题