aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-01-18 17:19:44 -0600
committerMark Hatle <mark.hatle@windriver.com>2011-01-18 17:21:54 -0600
commit8bd7239f3893bde8c2ce52adccb17da55c57e3a3 (patch)
tree4aaf6be6276e74d71e84ddbe3be81f701bb1a775
parent4095d65788c55842a4882a8a28267dc53e301b4e (diff)
downloadpseudo-8bd7239f3893bde8c2ce52adccb17da55c57e3a3.tar.gz
pseudo-8bd7239f3893bde8c2ce52adccb17da55c57e3a3.tar.bz2
pseudo-8bd7239f3893bde8c2ce52adccb17da55c57e3a3.zip
Do not cache OP_EXEC calls
The cached data values were being collected when an OP_EXEC call was made. This is incorrect as the values are only for logging purposes. It's believed this caused an occasional crash in certain instances. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r--ChangeLog.txt3
-rw-r--r--pseudo.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 8974d75..3dc98ab 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,6 +1,7 @@
2011-01-14:
* (seebs) Automatically create prefix/state directories.
-
+ * (mhatle) Avoid caching OP_EXEC calls
+
2011-01-13:
* (seebs) Subtle cache fixup.
diff --git a/pseudo.c b/pseudo.c
index efee436..62f28f3 100644
--- a/pseudo.c
+++ b/pseudo.c
@@ -1021,7 +1021,8 @@ pseudo_op(pseudo_msg_t *msg, const char *program, const char *tag) {
if (msg->op != OP_MAY_UNLINK &&
msg->op != OP_DID_UNLINK &&
msg->op != OP_CANCEL_UNLINK &&
- msg->op != OP_UNLINK) {
+ msg->op != OP_UNLINK &&
+ msg->op != OP_EXEC ) {
cache_msg = *msg;
if (path_by_ino) {