glib/docs
Dan Winship 409d93148f gutils: Add functions for working with environment arrays
When spawning a child process, it is not safe to call setenv() before
the fork() (because setenv() isn't thread-safe), but it's also not
safe to call it after the fork() (because it's not async-signal-safe).
So the only safe way to alter the environment for a child process from
a threaded program is to pass a fully-formed envp array to
exec*/g_spawn*/etc.

So, add g_environ_getenv(), g_environ_setenv(), and
g_environ_unsetenv(), which act like their namesakes, but work on
arbitrary arrays rather than working directly on the environment.

http://bugzilla.gnome.org/show_bug.cgi?id=659326
2011-10-15 15:54:45 -04:00
..
reference gutils: Add functions for working with environment arrays 2011-10-15 15:54:45 -04:00
debugging.txt Remove references to gruntime. This includes renaming the test program 2002-02-26 21:23:52 +00:00
macros.txt honour g_mem_gc_friendly settings when freeing slices, make sure 2006-01-25 15:51:43 +00:00
Makefile.am initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional 2007-11-21 20:09:46 +00:00