[lkml]   [2008]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectodd timing bug with cgroups?

I'm seeing some odd behaviour in the case where a parent task forks a
child and then immediately attempts to put the child into a group.

It appears that there is a window after task creation where the child
task is in "limbo" such that the parent cannot put it into a group. If
I run the parent under "strace" or else sleep for a bit before trying to
put the child into a group, then everything works fine.

This seems odd...I would think that as soon as the fork() call returns
in the parent we should be able to put that task into a group.

I'm just starting to look at the code, but I thought I'd mention it in
case someone knows exactly where to look.


 \ /
  Last update: 2008-06-13 23:41    [W:1.654 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site