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

Fix 2980: javalib j.l.p.UnixProcessGen2 now spawns when it can. #2982

Merged

Conversation

LeeTibbert
Copy link
Contributor

@LeeTibbert LeeTibbert commented Nov 9, 2022

Fix #2980

Javalib java.lang.process.UnixProcessGen2.apply() now spawns when it can, just like a salmon or trout.

Using ProcessBuilder.directory(newDirectory) to specify a new working directory will cause fallback to
the legacy fork() code.

Process spawn is recommended by macOS >= 12.0 as the replacement for
the now entirely removed vfork() syscall. On Linux, spawn should be marginally
faster & less system resource hungry than fork().

End users should see no functional change beyond, possibly, an improvement in execution speed.

@WojciechMazur WojciechMazur merged commit 1c25716 into scala-native:main Nov 11, 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.

javalib UnixProcessGen2 should spawn, not fork
2 participants