Signals #2667
Unanswered
franklinvp
asked this question in
Q&A
Signals
#2667
Replies: 1 comment 1 reply
-
@abersheeran , since you added Multiprocesss.handle_signals, probably you know what the intention and future plan is for the signal handling methods, in particular for the signals that do not currently have a signal handler implemented. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The method
Multiprocess.handle_signals
calls other methods which names are built from the signal name. The classMultiprocess
does not define handlers for all the signals.Question 1: Is the intention of the implementation of
Multiprocess.handle_signals
that users would monkey patch theMultiprocess
class to add their own signal handlers?Question 2: Can we expect some signals, for example SIGUSR1, to remain unused for something specific in uvicorn such that if monkey patched we don't affect other future functionality of uvicorn? For example, gunicorn uses SIGUSR1 to make the workers reopen the log files.
Beta Was this translation helpful? Give feedback.
All reactions