This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: pdb: restore SIGINT handler in sigint_handler already
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: blueyed
Priority: normal Keywords: patch

Created on 2019-04-19 11:07 by blueyed, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 12880 open blueyed, 2019-04-19 11:08
Messages (1)
msg340539 - (view) Author: daniel hahler (blueyed) * Date: 2019-04-19 11:07
Without this, and additional SIGINT while waiting for the next statement
(e.g. during `time.sleep`) will stop at `sigint_handler`.

With this patch:

    > …/<module>()
    -> sleep()
    (Pdb) c
    Program interrupted. (Use 'cont' to resume).
    > …/
    -> time.sleep(10)

Without this patch:

    > …/<module>()
    -> sleep()
    (Pdb) c
    Program interrupted. (Use 'cont' to resume).
    > …/cpython/Lib/
    -> def sigint_handler(self, signum, frame):

This was changed / regressed in (3.5.3rc1?), when it was moved while fixing issue 20766.
Date User Action Args
2022-04-11 14:59:14adminsetgithub: 80848
2019-04-19 11:08:26blueyedsetkeywords: + patch
stage: patch review
pull_requests: + pull_request12804
2019-04-19 11:07:53blueyedcreate