Open pquentin opened 4 years ago
Fixing this would allow to run FastAPI with uvicorn on Windows: https://gitter.im/python-trio/general?at=5ee0cc5d49260560aa512a42
It looks like it would also be ok if add_signal_handler simply worked on Windows?
Yes, I think that would work too!
uvicorn relies on this behavior: https://github.com/encode/uvicorn/blob/77468df/uvicorn/main.py#L568-L577. Running the code in #84 results in the following traceback on Windows: