From: Jonathan McDowell Date: Wed, 30 May 2018 19:53:02 +0000 (+0100) Subject: Add support for clean shutdown via SIGTERM X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=6121bfeaf48b68f62c814ca094f5ffb2d32b7dc2;hp=6121bfeaf48b68f62c814ca094f5ffb2d32b7dc2;p=mqtt-arp.git Add support for clean shutdown via SIGTERM Catch SIGTERM to allow ourselves to do an orderly shutdown. This isn't useful in general operation (as a TERM will do all this cleanup anyway) but allows for testing under valgrind to ensure no leaks or invalid accesses. ---