[PATCH 1/1] fork.2: child is created single threaded

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This important information should not be hidden in a note.
Instead it should be moved to the start of the man-page.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>
---
 man2/fork.2 | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/man2/fork.2 b/man2/fork.2
index dce9bff..3329227 100644
--- a/man2/fork.2
+++ b/man2/fork.2
@@ -53,6 +53,10 @@ The calling process is referred to as the
 .I parent
 process.
 
+The child process is created with a single thread,
+which is a copy of the one that called
+.BR fork ().
+
 The child process and the parent process run in separate memory spaces.
 At the time of
 .BR fork ()
@@ -70,6 +74,9 @@ The child has its own unique process ID,
 and this PID does not match the ID of any existing process group
 .RB ( setpgid (2)).
 .IP *
+The child thread has its own unique thread ID
+.RB ( gettid (2)).
+.IP *
 The child's parent process ID is the same as the parent's process ID.
 .IP *
 The child does not inherit its parent's memory locks
@@ -152,9 +159,6 @@ the child must turn on any bits that it requires using
 .PP
 Note the following further points:
 .IP * 3
-The child process is created with a single thread\(emthe
-one that called
-.BR fork ().
 The entire virtual address space of the parent is replicated in the child,
 including the states of mutexes, condition variables,
 and other pthreads objects; the use of
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux