Skip to contentSkip to conversation

signals-document-cld_continued-notification-mechanics-more

PATCH New Oleg Nesterov 1 participant 1 message Mar 19, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 signals-document-cld_continued-notification-mechanics-more

comments update for signals-document-cld_continued-notification-mechanics.patch

kernel/signal.c renamed from kernel/signal.c~DOC_1_NOTIFY +5 -1
@@ -1670,7 +1670,11 @@ relock:
 	try_to_freeze();
 
 	spin_lock_irq(&sighand->siglock);
-	/* see prepare_signal(SIGCONT) */
+	/*
+	 * Every stopped thread goes here after wakeup. Check to see if
+	 * we should notify the parent, prepare_signal(SIGCONT) encodes
+	 * the CLD_ si_code into SIGNAL_CLD_MASK bits.
+	 */
 	if (unlikely(signal->flags & SIGNAL_CLD_MASK)) {
 		int why = (signal->flags & SIGNAL_STOP_CONTINUED)
 				? CLD_CONTINUED : CLD_STOPPED;