Skip to content

Making sure all related processed are closed when terminating the currently command #90

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

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

Ciaro
Copy link
Contributor

@Ciaro Ciaro commented May 6, 2025

Context

When running composer run dev, the concurrently package is used to start multiple processes in one terminal. This is a great addition to the Laravel starter kits! However, when sending the EXIT signal (CTRL + C) only the last process in the configured list is closed.

Resolution

By adding the --kill-others option to the command, all the related processes are closed.

I would add this flag in by default, as the current behaviour is most likely unintended. For example, in case you are switching projects and need the ports released for re-use, you now need to manually find the other processes and close them yourself.

Disclaimer

This change was already approved in the Vue starter kit: laravel/vue-starter-kit#123

@taylorotwell taylorotwell merged commit 600834e into laravel:main Jun 5, 2025
2 checks passed
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