mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@tv-sign.ru>
To: "Kilau, Scott" <Scott_Kilau@digi.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	"linux-os (Dick Johnson)" <linux-os@analogic.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [BUG?] 2.6.x (2.6.13) - new signals not being delivered to a  terminating (PF_EXITING) process.
Date: Sat, 15 Oct 2005 20:14:13 +0400	[thread overview]
Message-ID: <43512AD5.852E44AC@tv-sign.ru> (raw)

Kilau, Scott wrote:
>
> signal_pending() never does, no matter how many signals I send it.
> (Even sending it multiple kill -9's)
>
> ...
>
> However, I see the signals climb, when I print out the values of
> current->signal->shared_pending.list.next and
> current->signal->shared_pending.list.prev
>
> Its like those values and the signal_pending macro aren't in "synch"
> Anymore, once the process has gone into the PF_EXITING state.
> (It works fine when the process is not in that state)

Yes, __group_complete_signal() is called after the signal has been added to
the ->shared_pending. But it does not signal_wake_up()s process, because of
this check in wants_signal():

	if (p->flags & PF_EXITING)
		return 0;

The intent was to find another thread in the thread group which can accept
this signal. May be we need special check in __group_complete_signal() under
"else if (thread_group_empty(p))".

You still can kill this process via tkill, though.

Oleg.

             reply	other threads:[~2005-10-15 16:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-15 16:14 Oleg Nesterov [this message]
2005-10-15 16:59 ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2005-10-11 20:33 Kilau, Scott
2005-10-11 19:35 Kilau, Scott
2005-10-11 19:49 ` linux-os (Dick Johnson)
2005-10-12  0:38 ` Alan Cox
2005-10-11 18:16 Kilau, Scott
2005-10-11 18:30 ` linux-os (Dick Johnson)

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=43512AD5.852E44AC@tv-sign.ru \
    --to=oleg@tv-sign.ru \
    --cc=Scott_Kilau@digi.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.com \
    /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

Powered by JetHome