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

implement readiness notification #767

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

implement readiness notification #767

wants to merge 1 commit into from

Conversation

navi-desu
Copy link
Member

No description provided.

Copy link
Contributor

@N-R-K N-R-K left a comment

Choose a reason for hiding this comment

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

Just a cursory glance. Didn't test it out.

eerrorx("%s: invalid ready '%s'.", applet, optarg);

ready.type = READY_FD;
pipe(ready.pipe);
Copy link
Contributor

Choose a reason for hiding this comment

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

Return value needs checking here, it may fail.

Same with some of the dup2 calls.

Adds two helper functions, and allows scripts to wait until services are
ready before proceeding with it's dependees by setting `ready=fd:<num>`,
where <num> is the file descriptor the daemon should write a new line to.
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