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

2011-03-04 Thread Daniel P. Berrange
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 SIG

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

2011-03-04 Thread Daniel Veillard
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 virLogEmergencyD

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

2011-03-03 Thread Daniel Veillard
On Thu, Mar 03, 2011 at 11:41:51AM +, Daniel P. Berrange wrote: > On Thu, Mar 03, 2011 at 06:22:17PM +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/lib

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

2011-03-03 Thread Daniel P. Berrange
On Thu, Mar 03, 2011 at 06:22:17PM +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 SIG

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

2011-03-03 Thread Daniel Veillard
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 op