]> xenbits.xensource.com Git - libvirt.git/commit
Dump the debug buffer to libvirtd.log on fatal signal
authorDaniel Veillard <veillard@redhat.com>
Thu, 3 Mar 2011 09:41:44 +0000 (17:41 +0800)
committerDaniel Veillard <veillard@redhat.com>
Fri, 4 Mar 2011 14:43:55 +0000 (22:43 +0800)
commita9f35c4863623fa07563f8ab3a25a20ea9f79fba
tree575ab8256f478ab4b2c8945f20e423c812c7c621
parent398553c157995f9f5b9f361396ea80312b1017f8
Dump the debug buffer to libvirtd.log on fatal signal

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 using virLogEmergencyDumpAll
daemon/libvirtd.c