Skip to content
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

begin using CFileDescriptor from hyprutils #9122

Merged
merged 14 commits into from
Jan 30, 2025
Merged

Conversation

gulafaran
Copy link
Contributor

its big, it touches many things. and it can be sneaky if fd's suddenly close at wrong time or begins rampantly leaking. so this warrants some testing. and reviewing.

this moves most fd handling over to CFileDescriptor while leaving the bits that is intertwined with aquamarine. the aquamarine bits is for future PR. IKeyboard also got a few lines of seemingly dead code removed unless the intention there originally was something else.

@gulafaran gulafaran force-pushed the fds branch 2 times, most recently from d5b42f2 to 8a9120f Compare January 22, 2025 19:05
@gulafaran gulafaran force-pushed the fds branch 4 times, most recently from 37643d0 to 0c81948 Compare January 28, 2025 17:56
Copy link
Contributor

@Honkazel Honkazel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dtors...

make use of the new hyprutils CFileDescriptor instead of manual FD
handling.
make use of the new hyprutils CFileDescriptor instead of manual FD
handling.
make use of the new CFileDescriptor instead of manual FD handling, also
in sendKeymap remove dead code, it already early returns if keyboard
isnt valid, and dont try to close the FD that ikeyboard owns.
make SHMFile misc functions use CFileDescriptor and its associated usage
in dmabuf and keyboard.
begin using CFileDescriptor in explicit sync and its timelines and
eglsync usage in opengl, there is still a bit left with manual handling
that requires future aquamarine change aswell.
make use of the hyprutils CFileDescriptor instead of manual FD and
socket handling and closing.
make the timerfd use CFileDescriptor instead of manual fd handling
make the gbm rendernode fd use CFileDescriptor instead of manual fd
handling
make data selection source and offers use CFileDescriptor and its
associated use in xwm and protocols
make most fd handling use CFileDescriptor in protocols
make SHMPool use CFileDescriptor instead of manual fd handling.
duplicate fenceFD with CFileDescriptor duplicate instead.
instead of manual opening/closing make sockets and fds use
CFileDescriptor
make sockets and fds use CFileDescriptor instead of manual handling.
@vaxerski vaxerski merged commit 32c0fa2 into hyprwm:main Jan 30, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants