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 umask and rlimit in lfp_spawn #30

Closed
wants to merge 3 commits into from

Conversation

byteit101
Copy link
Contributor

Triggered by jruby/jruby#6552 this implements setumask and setrlimit for lfp_spawn

I did refactor the internal file actions struct to be a tagged union, but if you'd prefer to stay linear I can undo that.

I also considered the more ffi-friendly signature (lfp_spawn_file_actions_t *file_actions, int resource, rlim_t cur, rlim_t max) but as much as I like that as an end-user, I ended up going with the more standard struct rlimit* signature here

Fixes #28
Fixes #27

@sionescu
Copy link
Owner

sionescu commented Nov 9, 2022

I added this functionality with different signatures.

@sionescu sionescu closed this Nov 9, 2022
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.

Add umask lfp_spawn attribute Add rlimit lfp_spawn attribute
2 participants