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

Run processes in new process groups, kill process group instead of process #787

Closed
wants to merge 1 commit into from

Commits on Oct 28, 2022

  1. Run processes in new pgroup

    Some processes are getting orphaned when running Foreman with JRuby.
    Creating a new pgroup allows them all to be killed together.
    
    I believe the issue is related to how JRuby handles `Dir.chdir` by
    creating a shell process: `sh -c 'cd /chdir/target; ${command}'`. That
    causes a second process to be created that won't get cleaned up by
    killing the parent.
    David Harsha authored and dentarg committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    b198ca1 View commit details
    Browse the repository at this point in the history