Closed mcdermj closed 4 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.
sigwaitinfo(2)
SIGINT
SIGTERM
waveform remove
Implement signal handling to clean up after getting a stop signal.
Use
sigwaitinfo(2)
to wait on the main thread forSIGINT
orSIGTERM
and shut down the threads and execute awaveform remove
for the registered waveforms.