Change by Selim Belhaouane :
--
nosy: +selimb
___
Python tracker
<https://bugs.python.org/issue15795>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Selim Belhaouane :
Cannot clear signal handler set with loop.add_signal_handler in forked process
with signal.signal
# Context
I'm running an async web server with uvicorn[1] and have background processes
(using multiprocessing) doing CPU-bound work. uvicorn in
Change by Selim Belhaouane :
--
title: Impossible to override signal handler set with add_signal_handler in
forked process -> Cannot clear signal handler set with loop.add_signal_handler
in forked process with signal.signal
___
Python trac
Selim Belhaouane added the comment:
Playing with this a bit more, I found a weird workaround. By adding the
following to the top of worker_sync(), Experiment 1 produces the expected
result.
def worker_sync():
async def clear_asyncio_signal_handlers():
loop