Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2014-02-05 17:48:57 +0000
committerEugene Tarassov2014-02-05 17:48:57 +0000
commitf76e8bfcc216c5b1ee998d5b090fe1ff54fb5800 (patch)
tree9c5fb1c030971185652b4075b2790eec1ef843ea
parent0bb6bf5c7305efca1c1c4d0318fcc1a999ae2fde (diff)
downloadorg.eclipse.tcf.agent-f76e8bfcc216c5b1ee998d5b090fe1ff54fb5800.tar.gz
org.eclipse.tcf.agent-f76e8bfcc216c5b1ee998d5b090fe1ff54fb5800.tar.xz
org.eclipse.tcf.agent-f76e8bfcc216c5b1ee998d5b090fe1ff54fb5800.zip
TCF Agent: fixed: wrong order of top level contexts returned by RunControl.getChildred command
-rw-r--r--agent/tcf/framework/pid-hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/framework/pid-hash.h b/agent/tcf/framework/pid-hash.h
index 5ed8179c..0cdf25d5 100644
--- a/agent/tcf/framework/pid-hash.h
+++ b/agent/tcf/framework/pid-hash.h
@@ -39,7 +39,7 @@ static void link_context(Context * ctx) {
assert(ctx->mem != NULL);
assert(EXT(ctx)->pid != 0);
assert(context_find_from_pid(EXT(ctx)->pid, ctx->parent != NULL) == NULL);
- list_add_first(&ctx->ctxl, &context_root);
+ list_add_last(&ctx->ctxl, &context_root);
list_add_first(ctx2pidlink(ctx), h);
ctx->ref_count++;
}

Back to the top