From: "Richard W.M. Jones" <rjones@redhat.com>
To: Richard Weinberger <richard@nod.at>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] [PATCH 3/4] um: Cleanup SIGTERM handling
Date: Mon, 19 Aug 2013 10:28:11 +0100 [thread overview]
Message-ID: <20130819092811.GZ5918@redhat.com> (raw)
In-Reply-To: <1376825409-18570-3-git-send-email-richard@nod.at>
On Sun, Aug 18, 2013 at 01:30:08PM +0200, Richard Weinberger wrote:
> Richard reported that some UML processes survive if the UML
> main process receives a SIGTERM.
> This issue was caused by a wrongly placed signal(SIGTERM, SIG_DFL)
> in init_new_thread_signals().
> It disabled the UML exit handler accidently for some processes.
> The correct solution is to disable the fatal handler for all
> UML helper threads/processes.
> Such that last_ditch_exit() does not get called multiple times
> and all processes can exit due to SIGTERM.
>
> Cc: rjones@redhat.com
> Reported-by: Richard W.M. Jones <rjones@redhat.com>
> Signed-off-by: Richard Weinberger <richard@nod.at>
I tested this using the libguestfs UML backend, and the original
problem with not all processes being cleared up on exit has been fixed.
I also observed that the exit status has changed from "killed by
SIGTERM" to exit code 1. Therefore:
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines. Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2013-08-19 9:28 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-18 11:30 [uml-devel] [PATCH 1/4] um: ubd: Add REQ_FLUSH suppport Richard Weinberger
2013-08-18 11:30 ` [uml-devel] [PATCH 2/4] um: ubd: Introduce submit_request() Richard Weinberger
2013-08-18 11:30 ` [uml-devel] [PATCH 3/4] um: Cleanup SIGTERM handling Richard Weinberger
2013-08-19 9:28 ` Richard W.M. Jones [this message]
2013-08-18 11:30 ` [uml-devel] [PATCH 4/4] um: Run UML in it's own session Richard Weinberger
2013-08-19 9:30 ` Richard W.M. Jones
2013-08-19 20:23 ` Richard Weinberger
2013-09-07 12:14 ` Richard W.M. Jones
2013-09-07 12:16 ` Richard Weinberger
2013-08-19 9:21 ` [uml-devel] [PATCH 1/4] um: ubd: Add REQ_FLUSH suppport Richard W.M. Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130819092811.GZ5918@redhat.com \
--to=rjones@redhat.com \
--cc=richard@nod.at \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox