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

Use std::os::unix::net::UnixStream::pair instead of rustix::net::socketpair #2

Merged
merged 1 commit into from
May 20, 2024

Conversation

teohhanhui
Copy link
Collaborator

@teohhanhui teohhanhui commented May 10, 2024

Small follow-up to #1

@slp
Copy link
Collaborator

slp commented May 10, 2024

@teohhanhui hm... why do we need to switch from socketpair to UnixStream::pair (I don't have a preference, I'm just wondering why)

@teohhanhui
Copy link
Collaborator Author

teohhanhui commented May 11, 2024

Just using std as much as possible. More battle tested etc... Also, UnixStream is a higher level wrapper, even though we're just directly converting it into OwnedFd (for now) haha...

@slp
Copy link
Collaborator

slp commented May 13, 2024

Just using std as much as possible. More battle tested etc... Also, UnixStream is a higher level wrapper, even though we're just directly converting it into OwnedFd (for now) haha...

I see. Could you please clarify this in the commit description for future reference?

@teohhanhui
Copy link
Collaborator Author

@slp Any outstanding concerns here?

@slp
Copy link
Collaborator

slp commented May 17, 2024

@slp Any outstanding concerns here?

Could you please add a Signed-off-by line to the commit?

…etpair

Assuming UnixStream in std is more widely used / battle tested, and has
more eyes on it.

Also, UnixStream is a higher-level wrapper, even though we are just
directly converting it into OwnedFd for now.

Signed-off-by: Teoh Han Hui <[email protected]>
@teohhanhui
Copy link
Collaborator Author

Done.

Copy link
Collaborator

@slp slp left a comment

Choose a reason for hiding this comment

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

Thanks!

@slp slp merged commit a5b11b1 into AsahiLinux:main May 20, 2024
@teohhanhui teohhanhui deleted the riir branch May 31, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants