From: Oleg Nesterov <oleg@tv-sign.ru>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Roland McGrath <roland@redhat.com>
Subject: [PATCH 2.6.16-mm1 2/3] finish_stop: don't check stop_count < 0
Date: Fri, 24 Mar 2006 19:13:39 +0300 [thread overview]
Message-ID: <44241AB3.A5E6AF78@tv-sign.ru> (raw)
Remove an obscure 'stop_count < 0' check in finish_stop().
The previous patch made this case impossible.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- MM/kernel/signal.c~3_STCT 2006-03-24 20:01:46.000000000 +0300
+++ MM/kernel/signal.c 2006-03-24 20:48:12.000000000 +0300
@@ -1657,7 +1657,7 @@ finish_stop(int stop_count)
* a group stop in progress and we are the last to stop,
* report to the parent. When ptraced, every thread reports itself.
*/
- if (stop_count < 0 || (current->ptrace & PT_PTRACED))
+ if (current->ptrace & PT_PTRACED)
to_self = 1;
else if (stop_count == 0)
to_self = 0;
reply other threads:[~2006-03-24 16:16 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=44241AB3.A5E6AF78@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=roland@redhat.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
all inboxes | Powered by JetHome®