-
Notifications
You must be signed in to change notification settings - Fork 352
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
Implement blocking unnamed_socket #4072
Conversation
Planning to open a minor clean-up PR to remove some unused variable here before getting back to this. @rustbot label S-blocked |
☔ The latest upstream changes (presumably #4074) made this pull request unmergeable. Please resolve the merge conflicts. |
let Some(self_ref) = weak_self_ref.upgrade() else { | ||
// FIXME: We should raise a deadlock error if the self_ref upgrade failed. | ||
throw_unsup_format!("This will be a deadlock error in future") | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this PR is big enough, so I decided to temporarily make this throws unsupported format.
I wanted to write a test for this, and potentially tweak the diagnostic a bit if it is too confusing (because of the reason stated here).
But I certainly won't mind putting it in this PR if anyone prefers.
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some nits, then this is ready, please apply and squash
Support blocking for socketpair and pipe.
closes #3665