-
|
In a consoleless pyinstaller built application. My program won't shut down its process when using With an error The documentation about signal is poor and confusing. the example code is poor and doesn't reference os.kill. I am fairly certain it was working at some stage. When exiting the app calling the code above in powershell it's ok. Any ideas ? |
Beta Was this translation helpful? Give feedback.
Answered by
rokm
Dec 10, 2025
Replies: 1 comment 11 replies
-
|
|
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Windows, both SIGINT and SIGTERM result in process termination via
TerminateProcess; there is no way to gracefully interrupt the process.So if you have no option to programmatically stop your
uvicornserver (which seems to be the reason for this signal-based approach), you are out of luck, since the alternative (the console control events) require a console. This has nothing to with PyInstaller, though; you would run into same issues if you ran your code in windowed/noconsole python interpreter (pythonw).