项目场景:epoll_ctl()函数
epoll_ctl error: Operation not permitted问题描述:
Linux编写多线程时调用epoll_ctl()函数将打开的普通文件加入 到events中时执行编译好的文件时报错: ![调用epoll_ctl()函数报错](https://img-blog.csdnimg.cn/20210301193434717.PNG#pic_center) res=epoll_ctl(epfd,EPOLL_CTL_ADD,fd,&event);
if(res){
perror("epoll_ctl error");
return -1;
}