Skip to contentSkip to conversation

finish_stop: don't check stop_count < 0

PATCH New Oleg Nesterov 1 participant 1 message Mar 24, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 finish_stop: don't check stop_count < 0

Remove an obscure 'stop_count < 0' check in finish_stop(). The previous patch made this case impossible.

kernel/signal.c renamed from kernel/signal.c~3_STCT +1 -1
@@ -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;