- 博客(3)
- 收藏
- 关注
原创 Linux-查看进程使用的fd
3.ls /proc/{PID}/fd | wc -l 进程所用fd的总数量。2.ls /proc/{PID}/fd 可以看到进程所有的fd。1.top 找到进程的PID。
2024-06-03 09:35:59
1161
原创 EPOLL网络编程
int epoll_ctl (int __epfd, int __op, int __fd,struct epoll_event *__event) : 把一个fd关注的事件绑定到epfd,op指EPOLL_CTL_*int epoll_wait (int __epfd, struct epoll_event *__events,int __maxevents, int __timeout):等待epfd对象关联的套接字产生网络事件。如果写出错,一般是指对端异常关闭了连接,此时可以关闭本地的套接字。
2024-05-05 22:25:44
246
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅