From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: Possible methods for the kernel to terminate a process
Date: Tue, 22 Jun 2010 21:01:52 +0100 [thread overview]
Message-ID: <20100622200152.GA7325@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <BAY134-W142753895B5626C329E273BDC40@phx.gbl>
On Tue, Jun 22, 2010 at 03:40:35PM -0400, Xiachen Dong wrote:
> We have such question because we try to kill a user space process by the
> shell command kill and we cannot kill it probably because it is in an
> un-interruptible sleep/wait.
Some applications block some signals while they wait for events.
SIGKILL is one signal which is unblockable. Have you tried using
this rather than SIGTERM ?
> However, we still wish to be able to kill the user space process under
> this circumstance. To our knowledge of the kernel, if the kernel wants
> to kill a process when special event such as exception happens, it
> usually sends a signal to the process. We really cannot think of any
> other methods for a kernel to terminate a process.
Sometimes the kernel forcefully exits the task - but that can only happen
while the task's context is running. If it's in an uninterruptible wait
then it won't be running.
next prev parent reply other threads:[~2010-06-22 20:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-22 19:40 Possible methods for the kernel to terminate a process Xiachen Dong
2010-06-22 20:01 ` Russell King - ARM Linux [this message]
2010-06-22 21:05 ` Xiachen Dong
2010-06-22 21:40 ` Russell King - ARM Linux
2010-06-23 0:44 ` Jamie Lokier
2010-06-25 19:43 ` Xiachen Dong
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=20100622200152.GA7325@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).