* Re: 2.5.1 crashed during sending processes TERM signal
[not found] <Pine.LNX.4.42.0112181226460.20596-100000@oceanic.wsisiz.edu.pl>
@ 2001-12-18 13:06 ` Alessandro Suardi
2001-12-18 15:04 ` Dave Jones
1 sibling, 0 replies; 2+ messages in thread
From: Alessandro Suardi @ 2001-12-18 13:06 UTC (permalink / raw)
To: _PepeR_; +Cc: linux-kernel
_PepeR_ wrote:
>
> Hello,
>
> At shutdown the system stops at the message "Sending all precesses TERM
> signal...". The isn't any messages of possible failure in logs.
> I'm using 2.5.1 kernel. If it's matter my system is an Athlon 1GHz on ECS
> K7S5A mainboard. If you need some detailed information please contact me
> on my e-mail 'coz I'm not subscribed to lkml.
No, this is generic, and is due to a recent patch (from -pre11 to -final)
that should have made Linux more standards-compliant. Linus already
reverted it in his tree so I assume the correctly-working shutdown
sequence will work again in 2.5.2-preX. zdiff'ing -pre11 from -final
patches I'd say it's this chunk (don't try to apply with 'patch', I
just cut'n'pasted from my xterm):
> --- v2.5.0/linux/kernel/signal.c Wed Nov 21 16:26:27 2001
> +++ linux/kernel/signal.c Fri Dec 14 12:25:24 2001
> @@ -649,8 +649,10 @@
> /*
> * kill_something_info() interprets pid in interesting ways just like kill(2).
> *
> - * POSIX specifies that kill(-1,sig) is unspecified, but what we have
> - * is probably wrong. Should make it like BSD or SYSV.
> + * POSIX (2001) specifies "If pid is -1, sig shall be sent to all processes
> + * (excluding an unspecified set of system processes) for which the process
> + * has permission to send that signal."
> + * So, probably the process should also signal itself.
> */
>
> static int kill_something_info(int sig, struct siginfo *info, int pid)
> @@ -663,7 +665,7 @@
>
> read_lock(&tasklist_lock);
> for_each_task(p) {
> - if (p->pid > 1 && p != current) {
> + if (p->pid > 1) {
> int err = send_sig_info(sig, info, p);
> ++count;
> if (err != -EPERM)
I see the same behavior on RedHat 7.2.
--alessandro
"we live as we dream alone / to break the spell we mix with the others
we were not born in isolation / but sometimes it seems that way"
(R.E.M., live intro to 'World Leader Pretend')
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.5.1 crashed during sending processes TERM signal
[not found] <Pine.LNX.4.42.0112181226460.20596-100000@oceanic.wsisiz.edu.pl>
2001-12-18 13:06 ` 2.5.1 crashed during sending processes TERM signal Alessandro Suardi
@ 2001-12-18 15:04 ` Dave Jones
1 sibling, 0 replies; 2+ messages in thread
From: Dave Jones @ 2001-12-18 15:04 UTC (permalink / raw)
To: _PepeR_; +Cc: linux-kernel
On Tue, 18 Dec 2001, _PepeR_ wrote:
> At shutdown the system stops at the message "Sending all precesses TERM
> signal...". The isn't any messages of possible failure in logs.
> I'm using 2.5.1 kernel. If it's matter my system is an Athlon 1GHz on ECS
> K7S5A mainboard. If you need some detailed information please contact me
> on my e-mail 'coz I'm not subscribed to lkml.
Known problem, backed out in next kernel Linus puts out.
If you're going to be playing with 2.5's, you really should consider
at least subscribing to the digests.
Dave.
--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-12-18 15:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.42.0112181226460.20596-100000@oceanic.wsisiz.edu.pl>
2001-12-18 13:06 ` 2.5.1 crashed during sending processes TERM signal Alessandro Suardi
2001-12-18 15:04 ` Dave Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox