Interrupting blocked read

后端 未结 2 1689
醉梦人生
醉梦人生 2021-02-05 14:10

My program goes through a loop like this:

...
while(1){
  read(sockfd,buf,sizeof(buf));
  ...
}

The read function blocks when it is waiting for

2条回答
提交回复
热议问题