JamesP6000 / WsprryPi

Raspberry Pi WSPR transmitter using NTP based frequency calibration
Other
326 stars 66 forks source link

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

Open roamingryan opened 6 years ago

roamingryan commented 6 years ago

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.