]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Remove console stream callback only when freeing console helper
authorPeter Krempa <pkrempa@redhat.com>
Fri, 3 Aug 2012 09:20:29 +0000 (11:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 3 Aug 2012 21:42:45 +0000 (23:42 +0200)
commit45edefc7a7bcbec988f54331ff37fc32e4bc2718
treecc28b681a389f5d208b870bb0c370b25d424b727
parentf8ef393ee3a67a61a4c991f50d62652ed81c2ebd
conf: Remove console stream callback only when freeing console helper

Commit ba226d334acbc49f6751b430e0c4e00f69eef6bf tried to fix crash of
the daemon when a domain with an open console was destroyed. The fix was
wrong as it tried to remove the callback also when the stream was
aborted, where at that point the fd stream driver was already freed and
removed.

This patch clears the callbacks with a helper right before the hash is
freed, so that it doesn't interfere with other codepaths where the
stream object is freed.
src/conf/virconsole.c