summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libvmon/vmon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libvmon/vmon.c b/src/libvmon/vmon.c
index fa7b62d..05c2b3a 100644
--- a/src/libvmon/vmon.c
+++ b/src/libvmon/vmon.c
@@ -381,8 +381,11 @@ static int proc_follow_children(vmon_t *vmon, vmon_proc_t *proc, vmon_proc_follo
return DTOR_FREE;
}
- if (proc->is_thread) /* don't follow children of threads */
+ if (proc->is_thread) { /* don't follow children of threads */
+ assert(!(*store));
+
return SAMPLE_UNCHANGED;
+ }
if (!(*store)) { /* implicit ctor on first sample */
*store = calloc(1, sizeof(vmon_proc_follow_children_t));
© All Rights Reserved