Skip to content

SIGWINCH generates SIGINT #212

@rendarz

Description

@rendarz

If we look at the code located here https://github.com/console-rs/console/blob/master/src/unix_term.rs#L325
you should realize that EINTR can be generated also by other signals than SIGINT.
In my application, if I resize the terminal, a SIGWINCH signal is thrown, but your crate translates that SIGWINCH (which generates an EINTR) to a SIGINT, so you're throwing an unwanted SIGINT to the "outselves", causing my application to brutally exit (since it received a SIGINT).
PLEASE FIX THIS!

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