Skip to content

Conversation

@xim
Copy link

@xim xim commented Nov 17, 2025

I agree with the creator of issue #6 that jobserver fds should be allowed to be sockets as well as pipes. A project I'm working on uses a jobserver implemented over Unix domain sockets.

xim added 2 commits November 17, 2025 14:30
I agree with the creator of issue rust-lang#6 that jobserver fds should be
allowed to be sockets as well as pipes. A project I'm working on
uses a jobserver implemented over Unix domain sockets.
@xim
Copy link
Author

xim commented Nov 17, 2025

Can add some details ; I already have a piece of software running that creates a token pool across all builds on the local machine using an abstract unix domain socket. It works well with GNU Make, Ninja and gcc.

@xim
Copy link
Author

xim commented Dec 4, 2025

I'm more than willing to contribute, and to consider alternative approaches.

Copy link
Contributor

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

I'm not a maintainer of jobserver though I did have some contributions and subscribe to updates to jobserver closely and is a maintainer of cc, which use jobserver, so take my comment with a grain of salt.

And I'm not sure if I should merge the PR here on behalf of the maintainer, so probably not unless nobody has time to review it

FromEnvErrorInner::CannotOpenFd(..) => FromEnvErrorKind::CannotOpenFd,
FromEnvErrorInner::NegativeFd(..) => FromEnvErrorKind::NegativeFd,
FromEnvErrorInner::NotAPipe(..) => FromEnvErrorKind::NotAPipe,
FromEnvErrorInner::NotAPipeOrSocket(..) => FromEnvErrorKind::NotAPipeOrSocket,
Copy link
Contributor

Choose a reason for hiding this comment

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

This would probably be an undesired breaking change, don't think we can rename this enum variant which is unfortunate

Could add a NotASocket

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