[issue44212] asyncio overrides signal handlers

2021-05-21 Thread Francisco Demartino
Change by Francisco Demartino : -- keywords: +patch pull_requests: +24904 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26306 ___ Python tracker

[issue44212] asyncio overrides signal handlers

2021-05-21 Thread Francisco Demartino
Francisco Demartino added the comment: Looks like Roger Dahl also noted this on https://bugs.python.org/issue39765: > Second, set_signal_handler()[sic] silently and implicitly removes > corresponding handlers set with signal.signal(). [...] I think this should > be documented as well.

[issue44212] asyncio overrides signal handlers

2021-05-21 Thread Francisco Demartino
New submission from Francisco Demartino : Hello, It looks like when asyncio sets up a signal handler, it forgets about the previous one (if any). Here's a patch (was about to create a PR but the default text brought me to bugs.python.org)