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

MacOSX runtime error with memory allocations #5

Closed
dimitri opened this issue Apr 6, 2014 · 0 comments
Closed

MacOSX runtime error with memory allocations #5

dimitri opened this issue Apr 6, 2014 · 0 comments

Comments

@dimitri
Copy link

dimitri commented Apr 6, 2014

This patch is still needed to be able to use libfixposix on MacOSX. Can it be included as is, or do you think more work is required?

diff --git a/src/lib/spawn_file_actions.c b/src/lib/spawn_file_actions.c
index eb7f82a..00a8d8c 100644
--- a/src/lib/spawn_file_actions.c
+++ b/src/lib/spawn_file_actions.c
@@ -68,7 +68,7 @@ lfp_spawn_file_actions_init(lfp_spawn_file_actions_t *file_actions)
     SYSCHECK(EINVAL, file_actions == NULL);
     SYSGUARD(lfp_getrlimit(RLIMIT_NOFILE, &limit));

-    return _lfp_spawn_file_actions_init(file_actions, limit.rlim_max);
+    return _lfp_spawn_file_actions_init(file_actions, limit.rlim_cur);
 }
@dimitri dimitri changed the title MacOSX error MacOSX runtime error with memory allocations Apr 6, 2014
@sionescu sionescu closed this as completed Apr 9, 2014
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

No branches or pull requests

2 participants