On Thu, Apr 9, 2009 at 20:49, Francis Moreau <francis.moro@xxxxxxxxx> wrote: > hello, > > I just took a look to fio source code (great tool BTW), and I'm > wondering about the fork_main() comment: > > /* > * We cannot pass the td data into a forked process, so attach the td > * and pass it to the thread worker. > */ > > Since after a fork(2) the child inherits the attached shared memory > segments from its parent, I don't see the point of this comment. > > Could anybody enlight me ? I think your observation is correct, this is not necessary, shmat in the child can be avoided. > > thanks. > -- > Francis > -- > To unsubscribe from this list: send the line "unsubscribe fio" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- mvh Carl Henrik -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html