aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_util.c
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-10-26 16:51:34 -0500
committerPeter Seebach <peter.seebach@windriver.com>2011-11-02 13:31:41 -0500
commit6177474388f243c9ff783da074a531ef8fd173fd (patch)
tree8f3df61d79586d6a737e08d4a12f25b606871b5e /pseudo_util.c
parent4a646c8bbe73ca830cb8c2e80be4b457d925cdd4 (diff)
downloadpseudo-6177474388f243c9ff783da074a531ef8fd173fd.tar.gz
pseudo-6177474388f243c9ff783da074a531ef8fd173fd.tar.bz2
pseudo-6177474388f243c9ff783da074a531ef8fd173fd.zip
Implement PSEUDO_UNLOAD, replacing existing PSEUDO_RELOADED semantics.
Change from internal PSEUDO_RELOADED to external PSEUDO_UNLOAD environment variable. Enable external programs to have a safe and reliable way to unload pseudo on the next exec*. PSEUDO_UNLOAD also will disable pseudo if we're in a fork/clone situation in the same way PSEUDO_DISABLED=1 would. Rename the PSEUDO_DISABLED tests, and create a similar set for the new PSEUDO_UNLOAD. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'pseudo_util.c')
-rw-r--r--pseudo_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudo_util.c b/pseudo_util.c
index ada6060..d4aab07 100644
--- a/pseudo_util.c
+++ b/pseudo_util.c
@@ -63,8 +63,8 @@ static struct pseudo_variables pseudo_env[] = {
{ "PSEUDO_TAG", 10, NULL },
{ "PSEUDO_ENOSYS_ABORT", 19, NULL },
{ "PSEUDO_NOSYMLINKEXP", 19, NULL },
- { "PSEUDO_RELOADED", 15, NULL },
{ "PSEUDO_DISABLED", 15, NULL },
+ { "PSEUDO_UNLOAD", 13, NULL },
{ NULL, 0, NULL } /* Magic terminator */
};