aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.1
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-10-26 18:49:00 -0500
committerPeter Seebach <peter.seebach@windriver.com>2011-11-02 13:31:43 -0500
commit375c6ad5af75703a638d557f50f173ee9b035302 (patch)
tree90ff90f002865ae8f9998945e44e7cfeb1cbc5b9 /pseudo.1
parent6177474388f243c9ff783da074a531ef8fd173fd (diff)
downloadpseudo-375c6ad5af75703a638d557f50f173ee9b035302.tar.gz
pseudo-375c6ad5af75703a638d557f50f173ee9b035302.tar.bz2
pseudo-375c6ad5af75703a638d557f50f173ee9b035302.zip
Rework the clone wrapper to add an intermediate function to resolve a defect.
Previously the clone(2) wrapper unconditionallity restored the system environment. It also invokes the checks to see if the user has requested pseudo to be disabled or unloaded. Due to the semantics of clone, this caused both the parent and child processes to be disabled or unloaded. The new code adds an intermediate function, wrap_clone_child, that only runs within the child context. This way we can be sure to only disable/unload pseudo from within the child process. In addition, we avoid mucking with the environment if CLONE_VM is set, since this will affect both parent and child. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'pseudo.1')
-rw-r--r--pseudo.17
1 files changed, 0 insertions, 7 deletions
diff --git a/pseudo.1 b/pseudo.1
index d2309ff..b689b97 100644
--- a/pseudo.1
+++ b/pseudo.1
@@ -576,13 +576,6 @@ than it is otherwise. This is probably because nearly every operation
communication with the server, and probably some kind of database
activity.
-The
-.IR clone(2)
-wrapper unconditionallity restores the system environment. It also invokes
-the checks to see if the user has requested pseudo to be disabled or unloaded.
-Due to the semantics of clone, this causes both the parent and child processes
-to be disabled or unloaded.
-
.SH SEE ALSO
fakeroot(1), ld.so(8), pseudolog(1), sqlite3(1)
.SH FURTHER READING