Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes signal handler for signal 28 (terminal resize signal) #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roamingryan
Copy link

The cleanup handler in this application was reponding to any and all process signals.
The intent was for cleanup to run regardless of how the application was terminated
(SIGTERM, SIGKILL, etc.). This behavior is inappropriate because certain signals, like
28, are simply used to notify the process of system events. Signal 28 (SIGWINCH) is
used to signal a terminal resize event.

It is likely the console blanking feature on the Pi is also sending this signal, which
would cause a undesired shutdown of the program.

The cleanup handler in this application was reponding to any and all process signals.
The intent was for cleanup to run regardless of how the application was terminated
(SIGTERM, SIGKILL, etc.).  This behavior is inappropriate because certain signals, like
28, are simply used to notify the process of system events.  Signal 28 (SIGWINCH) is
used to signal a terminal resize event.

It is likely the console blanking feature on the Pi is also sending this signal, which
would cause a undesired shutdown of the program.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant