]> the.earth.li Git - mqtt-arp.git/commit
Add support for clean shutdown via SIGTERM
authorJonathan McDowell <noodles@earth.li>
Wed, 30 May 2018 19:53:02 +0000 (20:53 +0100)
committerJonathan McDowell <noodles@earth.li>
Thu, 31 May 2018 07:12:16 +0000 (08:12 +0100)
commit6121bfeaf48b68f62c814ca094f5ffb2d32b7dc2
tree31219763c33a66cc2c110c9ab40814d18fe54250
parent35f4b6d147a8ab61fadc8a72118c18bd930e9160
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.
mqtt-arp.c