Skip to content

fix bugs in poll and epoll #1135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Godones
Copy link
Contributor

@Godones Godones commented Apr 22, 2025

No description provided.

@github-actions github-actions bot added the ambiguous The title of PR/issue doesn't match the format label Apr 22, 2025
@Godones Godones requested a review from fslongjin April 22, 2025 13:01
Signed-off-by: Godones <[email protected]>
@Godones
Copy link
Contributor Author

Godones commented Apr 23, 2025

由于file.poll会获取FilePrivateData的锁,而一些文件在唤醒期间已经拿到了这个锁(比如文件读写时FilePrivateData会获取锁),所以在wakeup_epoll中如果再次调用file.poll会发生死锁,这里直接让文件在调用wakeup_epoll时传入pollflag,wakeup_epoll就不需要去file上poll了

@fslongjin
Copy link
Member

这个pr目前发现测试程序test_epoll无法正常退出,按理来说应该得自动退才合理?

Signed-off-by: Godones <[email protected]>
@Godones Godones requested a review from fslongjin April 24, 2025 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ambiguous The title of PR/issue doesn't match the format
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants