mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] signals-document-cld_continued-notification-mechanics-more
@ 2008-03-19 18:20 Oleg Nesterov
  0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2008-03-19 18:20 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Roland McGrath, linux-kernel

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;


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

only message in thread, other threads:[~2008-03-19 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-19 18:20 [PATCH] signals-document-cld_continued-notification-mechanics-more 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®