lkml.org 
[lkml]   [2006]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateWed, 21 Jun 2006 21:34:02 +1000
FromPeter Williams <>
SubjectRe: [PATCH 00/11] Task watchers: Introduction
Matt Helsley wrote:
> On Wed, 2006-06-21 at 15:41 +1000, Peter Williams wrote:
>> On a related note, I can't see where the new task's notify field gets
>> initialized during fork.
>
> It's initialized in kernel/sys.c:notify_per_task_watchers(), which calls
> RAW_INIT_NOTIFIER_HEAD(&task->notify) in response to WATCH_TASK_INIT.

I think that's too late. It needs to be done at the start of
notify_watchers() before any other watchers are called for the new task.

Peter
--
Peter Williams pwil3058@bigpond.net.au

"Learning, n. The kind of ignorance distinguishing the studious."
-- Ambrose Bierce
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-21 13:36    [from the cache]
©2003-2010