Skip to content

Conversation

@ishitatsuyuki
Copy link
Contributor

Background: I'm planning to write a system-wide jobserver implementation. It uses sockets, not pipe, which will be rejected with the current validation.

Reference implementation in make: https://github.com/mirror/make/blob/48c8a116a914a325a0497721f5d8b58d5bba34d4/src/posixos.c#L124

Also in the docs:

If your tool determines that the --jobserver-auth option is available in MAKEFLAGS but that the file descriptors specified are closed,

So we don't need to force them to be a pipe.

@alexcrichton alexcrichton merged commit 921802c into rust-lang:master Feb 24, 2018
@alexcrichton
Copy link
Member

Sure!

xim added a commit to xim/jobserver-rs that referenced this pull request Nov 17, 2025
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.
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