* [PATCH 1/1] fork.2: child and parent run in separate memory spaces
@ 2015-02-16 10:40 Heinrich Schuchardt
[not found] ` <1424083246-6162-1-git-send-email-xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2015-02-16 10:40 UTC (permalink / raw)
To: Michael Kerrisk (man-pages)
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Heinrich Schuchardt
fork.2 should clearly point out that child and parent
process run in separate memory spaces.
Signed-off-by: Heinrich Schuchardt <xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
---
man2/fork.2 | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/man2/fork.2 b/man2/fork.2
index e6695ad..dce9bff 100644
--- a/man2/fork.2
+++ b/man2/fork.2
@@ -46,9 +46,25 @@ fork \- create a child process
.SH DESCRIPTION
.BR fork ()
creates a new process by duplicating the calling process.
-The new process, referred to as the \fIchild\fP,
-is an exact duplicate of the calling process,
-referred to as the \fIparent\fP, except for the following points:
+The new process is referred to as the
+.I child
+process.
+The calling process is referred to as the
+.I parent
+process.
+
+The child process and the parent process run in separate memory spaces.
+At the time of
+.BR fork ()
+both memory spaces have the same content.
+Memory writes, file mappings
+.RB ( mmap (2)),
+and unmappings
+.RB ( munmap (2))
+performed by one of the processes do not affect the other.
+
+The child process is an exact duplicate of the parent
+process except for the following points:
.IP * 3
The child has its own unique process ID,
and this PID does not match the ID of any existing process group
--
2.1.4
--
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] fork.2: child and parent run in separate memory spaces
[not found] ` <1424083246-6162-1-git-send-email-xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
@ 2015-02-17 5:05 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-02-17 5:05 UTC (permalink / raw)
To: Heinrich Schuchardt
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
linux-man-u79uwXL29TY76Z2rM5mHXA
On 02/16/2015 11:40 AM, Heinrich Schuchardt wrote:
> fork.2 should clearly point out that child and parent
> process run in separate memory spaces.
Thanks, Heinrich. Applied.
Cheers,
Michael
> Signed-off-by: Heinrich Schuchardt <xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
> ---
> man2/fork.2 | 22 +++++++++++++++++++---
> 1 file changed, 19 insertions(+), 3 deletions(-)
>
> diff --git a/man2/fork.2 b/man2/fork.2
> index e6695ad..dce9bff 100644
> --- a/man2/fork.2
> +++ b/man2/fork.2
> @@ -46,9 +46,25 @@ fork \- create a child process
> .SH DESCRIPTION
> .BR fork ()
> creates a new process by duplicating the calling process.
> -The new process, referred to as the \fIchild\fP,
> -is an exact duplicate of the calling process,
> -referred to as the \fIparent\fP, except for the following points:
> +The new process is referred to as the
> +.I child
> +process.
> +The calling process is referred to as the
> +.I parent
> +process.
> +
> +The child process and the parent process run in separate memory spaces.
> +At the time of
> +.BR fork ()
> +both memory spaces have the same content.
> +Memory writes, file mappings
> +.RB ( mmap (2)),
> +and unmappings
> +.RB ( munmap (2))
> +performed by one of the processes do not affect the other.
> +
> +The child process is an exact duplicate of the parent
> +process except for the following points:
> .IP * 3
> The child has its own unique process ID,
> and this PID does not match the ID of any existing process group
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-17 5:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-16 10:40 [PATCH 1/1] fork.2: child and parent run in separate memory spaces Heinrich Schuchardt
[not found] ` <1424083246-6162-1-git-send-email-xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
2015-02-17 5:05 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).