Skip to content

Conversation

pfmooney
Copy link
Contributor

@pfmooney pfmooney commented May 4, 2020

Although very similar in many regards, illumos and Solaris have been
diverging since the end of OpenSolaris. With the addition of illumos as
a Rust target, it must be wired into the same interfaces which it was
consuming when running under the 'solaris' target.

Motivation

With the addition of the illumos target and subsequent to various dependencies (like mio), it would be nice for Tokio to be supported on illumos.

Solution

Since ucred functions the same on illumos as it does on Solaris, they can share that logic.

Although very similar in many regards, illumos and Solaris have been
diverging since the end of OpenSolaris.  With the addition of illumos as
a Rust target, it must be wired into the same interfaces which it was
consuming when running under the 'solaris' target.
@Darksonn Darksonn added A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. M-net Module: tokio/net labels May 4, 2020
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

I have no way to test this, but if you say you've tested it and that it works, merging this is ok with me.

@pfmooney
Copy link
Contributor Author

I have no way to test this, but if you say you've tested it and that it works, merging this is ok with me.

Without the change, tokio fails to even build on illumos. I tested with toolchain binaries built from the scripts we're trying to get upstream in order to be supported by the nightly builds. With those binaries and this patch, the test suite passes.

Thanks

@Darksonn Darksonn merged commit 67220ea into tokio-rs:master May 11, 2020
jensim pushed a commit to jensim/tokio that referenced this pull request Jun 7, 2020
Although very similar in many regards, illumos and Solaris have been
diverging since the end of OpenSolaris.  With the addition of illumos as
a Rust target, it must be wired into the same interfaces which it was
consuming when running under the 'solaris' target.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-tokio Area: The main tokio crate C-enhancement Category: A PR with an enhancement or bugfix. M-net Module: tokio/net S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants