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

Jobserver fifo #2

Open
wants to merge 2 commits into
base: kitware-staged-features
Choose a base branch
from

Conversation

hundeboll
Copy link

Recent GNU make versions support opening a fifo path instead of using passed filedescriptor numbers. This simplifies using the jobserver functionality in build systems like openembedded.

These two patches are cherry-picked from ninja-build#2263 while skipping the patches adding joberserver master support.

A few simple conflicts were resolved in the test file while cherry-picking.

stefanb2 added 2 commits April 4, 2024 10:37
Make space to add new API to set up token pool master.
GNU make 4.4 introduced a new jobserver style "fifo" for POSIX systems
which passes a named pipe down to the clients.

- update auth parser to recognize "fifo:<name>" format
- open named pipe for reading and writing
- make sure the file descriptors are closed in the destructor
- add 2 tests that aren't compiled for WIN32
@hundeboll
Copy link
Author

@bradking Can you take a look on this, or ping someone who can?

@bradking
Copy link
Member

bradking commented Apr 9, 2024

@hundeboll thanks. In general we don't accept pull requests directly to this fork. It exists only to stage upstream PRs that haven't been merged there yet. This PR is toward that goal, but I'd like to avoid cherry-picking if possible. When I get a chance I'll look through the current state of the relevant upstream PRs to see if I can rebuild our fork.

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.

3 participants