diff -r 65abb0376a0d -r 12e975f807ed src/PosixMQCommand.h --- a/src/PosixMQCommand.h Wed Apr 20 20:59:42 2022 +0200 +++ b/src/PosixMQCommand.h Sat Apr 30 23:19:08 2022 +0200 @@ -20,6 +20,7 @@ #include #include #include +#include #include @@ -32,11 +33,16 @@ class PosixMQCommand { private: std::wstring_convert> convertor; // TODO: support also other encodings. + std::atomic continueProcessing{true}; public: virtual ~PosixMQCommand(); void process(std::shared_ptr writer, Configuration& configuration); + void finish(int sig) { + continueProcessing = false; + } + }; }