Skip to content

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.

2 participants