summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libos.tex
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-02-07 02:27:36 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-02-07 02:27:36 (GMT)
commit2b09bc4d571c29ff044d9170156a89e77adb8f61 (patch)
treef830b8c10c5b7bc4e8296a92e4f3132a832082a6 /Doc/lib/libos.tex
parentdab8b0ad995292dc15babee7dcdfe88064ca7592 (diff)
downloadcpython-2b09bc4d571c29ff044d9170156a89e77adb8f61.zip
cpython-2b09bc4d571c29ff044d9170156a89e77adb8f61.tar.gz
cpython-2b09bc4d571c29ff044d9170156a89e77adb8f61.tar.bz2
Fix SF bug #675259, os.environ leaks under FreeBSD and Mac OS X
Even with the extra work to cleanup the env, *BSD still leaks. Add a note. Will backport.
Diffstat (limited to 'Doc/lib/libos.tex')
-rw-r--r--Doc/lib/libos.tex8
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/lib/libos.tex b/Doc/lib/libos.tex
index aa57217..70da201 100644
--- a/Doc/lib/libos.tex
+++ b/Doc/lib/libos.tex
@@ -93,7 +93,9 @@ platforms), and is equivalent to \code{getenv("HOME")} in C.
If the platform supports the \function{putenv()} function, this
mapping may be used to modify the environment as well as query the
environment. \function{putenv()} will be called automatically when
-the mapping is modified.
+the mapping is modified. \note{On some platforms, including
+FreeBSD and Mac OS X, setting \code{environ} may cause memory leaks.
+Refer to the system documentation for putenv.}
If \function{putenv()} is not provided, this mapping may be passed to
the appropriate process-creation functions to cause child processes to
@@ -193,6 +195,10 @@ started with \function{os.system()}, \function{popen()} or
\function{fork()} and \function{execv()}.
Availability: most flavors of \UNIX, Windows.
+\note{On some platforms, including FreeBSD and Mac OS X,
+setting \code{environ} may cause memory leaks.
+Refer to the system documentation for putenv.}
+
When \function{putenv()} is
supported, assignments to items in \code{os.environ} are automatically
translated into corresponding calls to \function{putenv()}; however,