Skip to content

[13.x] Ensure dev command doesnt throw broken pipe on Windows - #61156

Draft
jackbayliss wants to merge 2 commits into
laravel:13.xfrom
jackbayliss:13.x-stop-broken-pipe-dev-command
Draft

[13.x] Ensure dev command doesnt throw broken pipe on Windows#61156
jackbayliss wants to merge 2 commits into
laravel:13.xfrom
jackbayliss:13.x-stop-broken-pipe-dev-command

Conversation

@jackbayliss

@jackbayliss jackbayliss commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Currently, when you use php artisan dev on Windows you when you press Ctrl C you get a big ol pipe error:

Details
warp_CayYeNoTKd.mp4

This PR uses the Process facade and sets it into a process group so when you press ctrl c it terminates the whole group, and sapi_windows_set_ctrl_handler is to ensure it catches the ctrl c.. I couldn't see anything Process wise to handle the Windows side...

Details

warp_JGRaJCMUxN.mp4

Anyways, the TLDR is this only affects Wndows due to

'Windows' => $this->runViaConcurrently($devCommands, $packageManager),

I don't know CLI and GUI that well, so you may see a nicer way to combat this, but just thought I'd try something as felt awkward seeing a pipe error.

@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

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