public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man <linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	zach.brown-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org
Subject: Re: [patch] Document fork() behaviour for the Linux native AIO  io_context
Date: Mon, 27 Apr 2009 08:46:47 -0400	[thread overview]
Message-ID: <x491vrexo08.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <cfd18e0f0904262231sa4ac502r59d484190da05a7d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> (Michael Kerrisk's message of "Mon, 27 Apr 2009 17:31:36 +1200")

Michael Kerrisk <mtk.manpages-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> writes:

> Hi Jeff,
>
> On Wed, Apr 15, 2009 at 5:54 AM, Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Hi,
>>
>> It was noted on lkml that the fork behaviour is documented for the posix
>> AIO calls, but not for the Linux native calls.  Here is a patch which
>> adds a small blurb that folks will hopefully find useful.
>>
>> Signed-off-by: Jeff Moyer <jmoyer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
>>
>> Upon fork, the child process does not inherit the io_context_t data structures
>> returned by io_setup, and thus cannot submit further asynchronous I/O or
>> reap event completions for said contexts.
>
> Thanks.  I tweaked that very slightly, and have applied for man-pages-3.22.

Your tweak doesn't really make sense, and it isn't grammatically
correct.  How about:

nor does it inherit any asynchronous I/O contexts from its parent.

You can add in "see io_setup" if you like.

Thanks!
Jeff

> Cheers,
>
> Michael
>
> --- a/man2/fork.2
> +++ b/man2/fork.2
> @@ -83,7 +83,9 @@ The child does not inherit timers from its parent
>  The child does not inherit outstanding asynchronous I/O operations
>  from its parent
>  .RB ( aio_read (3),
> -.BR aio_write (3)).
> +.BR aio_write (3)),
> +nor does it inherit outstanding asynchronous I/O context from its parent
> +.RB ( io_setup (2)).
>  .PP
>  The process attributes in the preceding list are all specified
>  in POSIX.1-2001.
>
>
>
>> diff --git a/man2/fork.2 b/man2/fork.2
>> index ce93b3e..fb9008e 100644
>> --- a/man2/fork.2
>> +++ b/man2/fork.2
>> @@ -83,7 +83,9 @@ The child does not inherit timers from its parent
>>  The child does not inherit outstanding asynchronous I/O operations
>>  from its parent
>>  .RB ( aio_read (3),
>> -.BR aio_write (3)).
>> +.BR aio_write (3)),
>> +nor does it inherit the asynchronous io_context returned by
>> +.BR io_setup (2).
>>  .PP
>>  The process attributes in the preceding list are all specified
>>  in POSIX.1-2001.
>>
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-04-27 12:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14 17:54 [patch] Document fork() behaviour for the Linux native AIO io_context Jeff Moyer
     [not found] ` <x49r5zvxgsg.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2009-04-27  5:31   ` Michael Kerrisk
     [not found]     ` <cfd18e0f0904262231sa4ac502r59d484190da05a7d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-27 12:46       ` Jeff Moyer [this message]
     [not found]         ` <x491vrexo08.fsf-RRHT56Q3PSP4kTEheFKJxxDDeQx5vsVwAInAS/Ez/D0@public.gmane.org>
2009-04-28  5:10           ` Michael Kerrisk

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=x491vrexo08.fsf@segfault.boston.devel.redhat.com \
    --to=jmoyer-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=zach.brown-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox