All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francis Moreau <francis.moro@gmail.com>
To: fio@vger.kernel.org
Subject: question about fork_main()
Date: Thu, 09 Apr 2009 20:49:10 +0200	[thread overview]
Message-ID: <m2eiw1fys9.fsf@gmail.com> (raw)

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 ?

thanks.
-- 
Francis

             reply	other threads:[~2009-04-09 18:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 18:49 Francis Moreau [this message]
2009-04-20  1:16 ` question about fork_main() Carl Henrik Lunde
2009-04-20  6:45   ` Jens Axboe
2009-04-21 18:37   ` Francis Moreau
2009-04-21 19:01     ` Jens Axboe
2009-04-21 19:13       ` Francis Moreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2eiw1fys9.fsf@gmail.com \
    --to=francis.moro@gmail.com \
    --cc=fio@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.