mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.16-mm1 2/3] finish_stop: don't check stop_count < 0
@ 2006-03-24 16:13 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2006-03-24 16:13 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel, Ingo Molnar, Roland McGrath

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-24 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-24 16:13 [PATCH 2.6.16-mm1 2/3] finish_stop: don't check stop_count < 0 Oleg Nesterov

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®