From 2c7c50cd6ac2ce48dd53cb06959e2d1f27c527fb Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 22 Dec 2015 14:58:30 +0100 Subject: [PATCH] fork.2: Child of MT-process is restricted to async-signal-safe functions Signed-off-by: Michael Kerrisk --- man2/fork.2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man2/fork.2 b/man2/fork.2 index a832ff969..e1f3036c6 100644 --- a/man2/fork.2 +++ b/man2/fork.2 @@ -161,6 +161,14 @@ and other pthreads objects; the use of .BR pthread_atfork (3) may be helpful for dealing with problems that this can cause. .IP * +After a +.BR fork (2) +in a multithreaded program, +the child can safely call only async-signal-safe functions (see +.BR signal (7)) +until such time as it calls +.BR execve (2). +.IP * The child inherits copies of the parent's set of open file descriptors. Each file descriptor in the child refers to the same open file description (see