aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.1
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-12-07 20:43:45 -0600
committerPeter Seebach <peter.seebach@windriver.com>2010-12-07 20:47:19 -0600
commit98f16482f1e5c4b9c9d3b0803d41565a350af53d (patch)
tree4af00226b5b0b3b79ff26b51aedb2c5af15f58fe /pseudo.1
parent7b2dd4c7a6e20a8fe78cb892a8406d6d119c415b (diff)
downloadpseudo-98f16482f1e5c4b9c9d3b0803d41565a350af53d.tar.gz
pseudo-98f16482f1e5c4b9c9d3b0803d41565a350af53d.tar.bz2
pseudo-98f16482f1e5c4b9c9d3b0803d41565a350af53d.zip
This is a merge of several commits from a tree which turned out to
be out of sync in a very inconvenient way. Changes include: * Some whitespace fixes, also move the pseudo_variables definition into pseudo_util.c since it's not used anywhere else. * Further improvements in the fork() support: We now recognize both positive and negative forms of PSEUDO_DISABLED, so we can distinguish between "it was removed from the environment by env -i" (restore the old value) and "it was intentionally turned off" (the new value wins). * clone(2) support. This is a little primitive, and programs might still fail horribly due to clone's semantics, but at least it's there and passes easy test cases. Plus a big patch from Mark Hatle: Cleanup fork/clone and PSEUDO_DISABLED guts/fork.c: * cleanup function and make it more robust * be sure to call pseudo_setupenv prior to pseudo_client_reset to match exec behavior pseudo_wrappers.c: * fix mismatched type in execl_to_v call via typecast * Simplify fork call via single call to wrap_fork() * be sure to save pseudo_disabled * be sure to call pseudo_setupenv prior to pseudo_client_reset to match exec behavior tests: * Add a test of whether pseudo can be disabled/enabled on a fork. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'pseudo.1')
-rw-r--r--pseudo.110
1 files changed, 10 insertions, 0 deletions
diff --git a/pseudo.1 b/pseudo.1
index 7002023..a9f37a6 100644
--- a/pseudo.1
+++ b/pseudo.1
@@ -400,6 +400,16 @@ in the
.I var/pseudo
directory, while clients log to standard error.
.TP 8
+.B PSEUDO_DISABLED
+If this variable is set to a value that doesn't look like f, F, n, N, or
+a numeric zero, the
+.I pseudo
+client library does not modify the behavior of called functions, though it
+continues to intercept them and block signals while processing them. This
+variable is reevaluated on every call to
+.IR fork(2) ,\ clone(2)
+or related functions.
+.TP 8
.B PSEUDO_ENOSYS_ABORT
If this variable is set, the
.I pseudo