
17 Mar
2011
17 Mar
'11
7:41 a.m.
As pointed out, locking the buffer from the signal handler cannot been garanteed to be safe, so to avoid any hazard we prefer the trade off of dumping logs possibly messed up by concurrent logging activity rather than risk a daemon crash. * src/util/logging.c: change virLogEmergencyDumpAll() to not take any lock on the log buffer but reset buffer content variables to an empty set before starting the actual dump. Signed-off-by: Daniel Veillard <veillard@redhat.com> --- src/util/logging.c | 44 ++++++++++++++++++++++++++++++-------------- 1 files changed, 30 insertions(+), 14 deletions(-)