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

Windows --frontend-only fix ctrl + c #3181

Merged
merged 4 commits into from
May 2, 2024
Merged

Conversation

ElijahAhianyo
Copy link
Collaborator

@ElijahAhianyo ElijahAhianyo commented Apr 28, 2024

We introduced a workaround(#2954) to fix the ctrl + c bug in windows affecting uvicorn which causes the frontend to exit on hot reload. This fix applied to the case of running the frontend and backend concurrently, however another issue was introduced where ctrl + c does not work at all when running the frontend only. This PR makes sure the frontend is created as a subprocess group independent of its parent ONLY when the backend exists. This should keep the frontend process in the same group as the parent process and allow SIGINT reach.

@ElijahAhianyo ElijahAhianyo marked this pull request as ready for review April 29, 2024 15:53
@masenf
Copy link
Collaborator

masenf commented Apr 29, 2024

It looks good, i'll test it later today

@picklelo picklelo merged commit db47d39 into main May 2, 2024
46 checks passed
@picklelo picklelo deleted the elijah/windows-frontend-ctrl-c branch August 21, 2024 20:43
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

3 participants