Fix corrupted list after reverse shutdown client traversal
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Wed, 25 Jul 2012 13:52:06 +0000 (14:52 +0100)
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>
Wed, 25 Jul 2012 14:03:00 +0000 (15:03 +0100)
commita23a8cb1f3e572a44eb91e6e2b991ee80e419125
tree87287a30a9f0d29b1c81e719523018d9c0a0a2c1
parent01251809c3a022b91b09fbccab4f84baab300acc
Fix corrupted list after reverse shutdown client traversal

The problem is that g_list_reverse() modifies the list in place, so in
order to not corrupt the shutdown client list of the NSMConsumerService,
we would have to copy the list. What this commit does instead is to not
call g_list_reverse() and instead traverse the list in reverse order
directly.

This commit also improves the shutdown logging a bit.
nsm-dummy/nsm-consumer-service.c