Skip to content

Call Python signal handler #103

Open
@jdemeyer

Description

@jdemeyer

Currently, we are hardcoding what happens when cysignals catches a signal. For SIGINT for example, a KeyboardInterrupt is raised. Instead, we could install a Python-level signal handler and then call that.

We could then also monkey-patch signal.signal to set only the Python-level handler and not the OS handler. Then users could use signal.signal as usual and everything would magically work (despite cysignals handling the signal).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions