Improve shutdown handling, keep shutdown clients around afterwards
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Tue, 24 Jul 2012 15:51:11 +0000 (16:51 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Wed, 25 Jul 2012 14:00:25 +0000 (15:00 +0100)
commit7678358c27903957b1434c311455fb5f8a4614fe
treeac52fc3fa78de0990e246d63f80544238eda9828
parentdbdeca8e3a208cfcaf55726812c2b95c5c5923be
Improve shutdown handling, keep shutdown clients around afterwards

Use the new ShutdownClient class to bundle information about registered
shutdown clients and their units, modes and timeouts.

Do not remove shutdown clients from the registered clients list after
shutting them down. Instead, wait for a separate unregister request.

Shut clients down mode by mode when receiving SIGINT. Start with clients
registered for fast, then continue with clients registered for normal.

Improve logging output a little bit.
common/Makefile.am
common/nsm-enum-types.c
legacy-app-handler/main.c
nsm-dummy/nsm-consumer-service.c