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

Daniel P. Berrange berrange at redhat.com
Fri Mar 4 11:33:53 UTC 2011


On Fri, Mar 04, 2011 at 06:30:57PM +0800, Daniel Veillard wrote:
> 
> 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
> 
> Signed-off-by: Daniel Veillard <veillard at redhat.com>
> ---
>  daemon/libvirtd.c |   32 ++++++++++++++++++++++++++++++++
>  1 files changed, 32 insertions(+), 0 deletions(-)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list