Skip to content

Add process groups to unix backends #802

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

patricoferris
Copy link
Collaborator

This is, I hope, most of the plumbing for #595. It remains to decide on how best to expose this in Eio.Process if at all.

Also if anyone has a good, reproducible test for this, that would be good too!

Copy link
Collaborator

@talex5 talex5 left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me.


static void action_setpgid(int errors, value v_config) {
#ifdef _WIN32
eio_unix_fork_error(errors, "set_cloexec", "Unsupported operation on windows");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
eio_unix_fork_error(errors, "set_cloexec", "Unsupported operation on windows");
eio_unix_fork_error(errors, "setpgid", "Unsupported operation on windows");
_exit(1);

Perhaps eio_unix_fork_error should call _exit itself. Looks like everything that uses it either does that or is wrong.

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