[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] catch signals

From: Daniel P. Berrange
Subject: Re: [Qemu-devel] [PATCH] catch signals
Date: Tue, 5 Aug 2008 18:00:48 +0100
User-agent: Mutt/1.4.1i

On Tue, Aug 05, 2008 at 05:53:21PM +0100, Samuel Thibault wrote:
> Daniel P. Berrange, le Tue 05 Aug 2008 17:35:19 +0100, a écrit :
> > I think rather than trying todo anything in the signal handler,
> > it is safest to just set a flag and have its state checked
> > and acted upon in the main loop.
> We can not do that for SIGSEGV/SIGBUS, however.

We shouldn't be trying todo anything for SEGV/BUS. It is basically game
over at that point - you've no chance of orderly shutdown. Only QUIT, INT,
TERM, HUP should be trying todo graceful shutdown, because those don't
imply your process is corrupting its memory/ doing bad stuff.

|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

reply via email to

[Prev in Thread] Current Thread [Next in Thread]