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.
_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to