[libvirt] [PATCH 6/6] Dump the debug buffer to libvirtd.log on fatal signal

Daniel Veillard veillard at redhat.com
Thu Mar 3 10:22:17 UTC 2011


In case of imminent crash or upon request (signal USR2),
dump the logging buffer to the libvirtd.log file for
post-mortem analysis
* daemon/libvirtd.c: create a sig_fatal() handler connected to
  SIGFPE SIGSEGV SIGILL SIGABRT SIGBUS and SIGUSR2, just dumping
  the log buffer to the libvirtd.log open file descriptor

Signed-off-by: Daniel Veillard <veillard at redhat.com>
---
 daemon/libvirtd.c |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Dump-the-debug-buffer-to-libvirtd.log-on-fatal-signa.patch
Type: text/x-patch
Size: 2375 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110303/cb267c14/attachment-0001.bin>


More information about the libvir-list mailing list