login
Header Space

 
 

[PATCH] signals-document-cld_continued-notification-mechanics-more

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: Roland McGrath <roland@...>, <linux-kernel@...>
Date: Wednesday, March 19, 2008 - 2:20 pm

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

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>

--- 25/kernel/signal.c~DOC_1_NOTIFY	2008-03-18 17:25:19.000000000 +0300
+++ 25/kernel/signal.c	2008-03-19 20:53:45.000000000 +0300
@@ -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;

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] signals-document-cld_continued-notification-mechanic..., Oleg Nesterov, (Wed Mar 19, 2:20 pm)
speck-geostationary