Skip to content

Fix epollfd validity checks when compiling with wepoll#3855

Merged
aleks-f merged 1 commit intopocoproject:develfrom
ypogribnyi:devel
Jan 24, 2023
Merged

Fix epollfd validity checks when compiling with wepoll#3855
aleks-f merged 1 commit intopocoproject:develfrom
ypogribnyi:devel

Conversation

@ypogribnyi
Copy link
Copy Markdown
Contributor

When compiled with wepoll eventfd is HANDLE (which is synonym for void*), not int, and errors in epoll_create(int) are signalled by NULL, not -1. Code that checks the eventfd validity should account for this difference.

@aleks-f aleks-f added the bug label Jan 24, 2023
@aleks-f aleks-f added this to the Release 1.12.5 milestone Jan 24, 2023
@aleks-f aleks-f merged commit 85c68e7 into pocoproject:devel Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants