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

exec foreman to replace current process #131

Merged
merged 2 commits into from Dec 14, 2022
Merged

Conversation

stevenharman
Copy link
Contributor

Use exec to invoke foreman to make sure bin/dev is replaced by the foreman process. This ensures that foreman gets bin/dev's pid (so it's cleaned up properly) and that interrupts and signals (like ctrl+c) are handled correctly by foreman (to shut down child processes).

Use `exec` to invoke `foreman` to make sure `bin/dev` is replaced by the `foreman` process. This ensures that `foreman` gets `bin/dev`'s pid (so it's cleaned up properly) and that interrupts and signals (like `ctrl+c`) are handled correctly by `foreman` (to shut down child processes).
Some distros don't ship with bash, but will have sh.

see also: rails/cssbundling-rails#98
@stevenharman
Copy link
Contributor Author

I went over to cssbundling-rails to make the exec change there too, and realized @defeated already did it! 😂 And they used a more widely-available shell, so I've added that here too. Happy to squash these together if y'all prefer.

@dhh dhh merged commit 7752524 into rails:main Dec 14, 2022
@stevenharman stevenharman deleted the patch-1 branch December 14, 2022 15:29
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.

None yet

2 participants