Skip to content

Swallowing SIGINT #511

@AuHau

Description

@AuHau

I am writing a small log utility loggy with tview and the main use case of this utility is that you pipe into it other program's logs.

I have found some weird bugs that seem to be related to the fact that tcell is listening to all keypresses and hence is preventing the shell to receive CTRL+C combination which would issue the SIGINT signal. I know that in tview the CTRL+C keypress is detected and the application exits, but this does not solve the problem that usually the whole pipe process group would receive SIGINT which would allow gracefully to terminate all the programs in the pipe. In this way the logs producing program gets SIGKILL instead as it is not responding to what should have been SIGINT originally.

Is my understanding of this problem correct? Is there something possible to do about it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions