virt plugin: handle disconnect on inst#0
authorFrancesco Romani <fromani@redhat.com>
Mon, 12 Dec 2016 11:05:11 +0000 (12:05 +0100)
committerFrancesco Romani <fromani@redhat.com>
Tue, 13 Dec 2016 15:33:49 +0000 (16:33 +0100)
commitd11224e04dde09a1964835162f6915acc7aec934
tree0454410222f0290358213d3e81309bb6c0062b61
parent27f2019ddab0d4e93a8c99ee87065fe6a836056e
virt plugin: handle disconnect on inst#0

Only one virt reader instance should take care of connection
handling (connection/disconnection) to avoid races and plugin
data corruption, potentially crashing collectd.

This bug cannot be triggered with instances=1 (default settings).

Signed-off-by: Francesco Romani <fromani@redhat.com>
src/virt.c