You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A guy on the python forum give a comment about the situation:
flask responds to requests concurrently using threads
They are using a signal handler to respond gracefully to ctrl+c KeyboardInterrupt
But that doesn't work in an off-main-thread
So they need to do something different when run in an off-main thread, eg no-op the SIGINT handling with a:
try: signal.signal(...) except ValueError: if threading.current_thread() is threading.main_thread(): raise
I particulary resolved the error using the multithread Process class as suggested by graingert on python discord.
Hi,
I'm using a lib to rect pack and it uses this library, and I have a error about the signal only running on main thread.
The text was updated successfully, but these errors were encountered: