Skip to content

No way to disable SDL signal catching #488

Open
@jonas-schievink

Description

@jonas-schievink

Citing the SDL Wiki:

On POSIX systems, SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) and SIGTERM (system termination request), if handlers do not already exist, that generate SDL_QUIT events as well. There is no way to determine the cause of an SDL_QUIT event, but setting a signal handler in your application will override the default generation of quit events for that signal.

IMO implicitly installing signal handlers is very bad practice, and there should at least be a convenient way of undoing this in rust-sdl2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions