mcdermj / smartsdr-codec2

SmartSDR Waveform API
GNU General Public License v3.0
0 stars 3 forks source link

Implement Signal Handling #9

Closed mcdermj closed 4 years ago

mcdermj commented 5 years ago

Implement signal handling to clean up after getting a stop signal.

Use sigwaitinfo(2) to wait on the main thread for SIGINT or SIGTERM and shut down the threads and execute a waveform remove for the registered waveforms.