public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Brian J. Watson" <Brian.J.Watson@compaq.com>
To: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Why does do_signal() repost deadly signals?
Date: Wed, 18 Apr 2001 16:48:19 -0700	[thread overview]
Message-ID: <3ADE27C3.F5962329@compaq.com> (raw)

If a signal's default behavior is to kill a process, do_signal() reposts that
signal before calling do_exit(). Why does it do that?

Our guess is that it prevents the exiting process from blocking for an extremely
long period of time. One example might be a process with an open NFS file. The
process has to flush its writes out to the server during the close, but the
server might be unavailable. Examining the code, it looks like the reposted
signal prevents the NFS flush from waiting on any RPC response.

Is this the reason for reposting the signal? Are there any others?

--
Brian Watson
Compaq Computer

Not subscribed to LKML. Please CC me in response.

                 reply	other threads:[~2001-04-18 23:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3ADE27C3.F5962329@compaq.com \
    --to=brian.j.watson@compaq.com \
    --cc=linux-kernel@vger.kernel.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