MagicStack / MagicStack/uvloop
uvloop simply disable SIGCHLD?
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Cython
- Estrelas
- 11.9k
- Forks
- 616
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
- uvloop version: 0.14.0
- Python version: 3.6.8
- Platform: linux
- Can you reproduce the bug with
PYTHONASYNCIODEBUGin env?: - Does uvloop behave differently from vanilla asyncio? How?: uvloop cannot add SIGCHLD handler
I need to monitor child process exit.
loop.add_signal_handler(signal.SIGCHLD, handle_child_exit)
However, uvloop simply disable the signal with the following error.
RuntimeError: cannot add a signal handler for SIGCHLD: it is used by the event loop to track subprocesses
Is there any solution to support SIGCHLD?
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Start with the reported loop.add_signal_handler(signal.SIGCHLD, handle_child_exit) case and reproduce the RuntimeError on Linux with uvloop 0.14.0. Compare the behavior with vanilla asyncio, then determine whether SIGCHLD can be supported without breaking the event loop's subprocess tracking. Done means child-process exits can be monitored through a user handler without that conflict.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- operating-systems
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 25/100