[zeromq-dev] What eats SIGINT?

Gavin Henry ghenry at sentrypeer.org
Tue Feb 15 22:48:34 CET 2022


Ah, looked at the minimal example again and can see:

//  Global signal indicator, TRUE when user presses Ctrl-C or the process
//  gets a SIGTERM signal.
CZMQ_EXPORT extern volatile int zsys_interrupted;

which is like my "cleanup_flag":

https://github.com/SentryPeer/SentryPeer/blob/main/src/signal_handler.h#L19

I'll use that too in my code.


More information about the zeromq-dev mailing list