Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Add signal exit handler for SIGQUIT#824

Open
webkadiz wants to merge 1 commit into
sharpbracket:master from
webkadiz:master
Open

Add signal exit handler for SIGQUIT #824
webkadiz wants to merge 1 commit into
sharpbracket:master from
webkadiz:master

Conversation

@webkadiz

@webkadiz webkadiz commented Jun 23, 2021

Copy link
Copy Markdown

When I call redshift on the command line:
$ redshift

My config is being applied and redshift is waiting.
If I press Ctrl-C, then redshift exits normally and the configuration is reset
If I press Ctrl-\ then redshift just exits and doesn't reset its config, my screen stays red

This PR solves this problem by exposing a handler for the SIGQUIT signal.
It sometimes comes in handy when, for example, a person has bind on Ctrl-C, which copies the text.

Copy link
Copy Markdown
Contributor

It sometimes comes in handy when, for example, a person has bind on Ctrl-C, which copies the text.

FYI you can remap the SIGINT binding. E.g. with stty intr '^X'.

Copy link
Copy Markdown
Author

Thanks for the info, I didn't know about it. And yet, why not use a graceful exit on SIGQUIT instead of a hard?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /