environ.7: Note that child of fork(2) inherits copy of parent's environment

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-02-17 12:21:58 +01:00
parent f80ea17946
commit 9c67b25027
1 changed files with 5 additions and 0 deletions

View File

@ -53,6 +53,11 @@ feature test macro is defined.)
This array of strings is made available to the process by the This array of strings is made available to the process by the
.BR exec (3) .BR exec (3)
call that started the process. call that started the process.
When a child process is created via
.BR fork (2),
it inherits a
.I copy
of its parent's environment.
By convention the strings in By convention the strings in
.I environ .I environ