Skip to content

fix: the concurrently command does not close all related processes on exit signal (CTRL + C) #111

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ciaro
Copy link

@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. This PR adds this option to both the concurrently references in the composer.json file.

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

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.

1 participant