From e388a30dde91db476e3fa6543a7beb0744e16550 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Wed, 27 Jun 2012 23:13:09 -0600 Subject: [PATCH] Do not report the same job multiple times. --- scripts/trace-master.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/trace-master.pl b/scripts/trace-master.pl index 5653a4bf9a..11effd994f 100755 --- a/scripts/trace-master.pl +++ b/scripts/trace-master.pl @@ -106,6 +106,8 @@ sub getJob { start => undef(), history => '', + + reported => 0, }; $Jobs{$id} = $job; @@ -118,6 +120,10 @@ sub reportJob { my $job = $Jobs{$id} or die("Did not see job$id\n"); + # several kids may try to report their common parent + return if $job->{reported}; + $job->{reported} = 1; + &reportJob($job->{parent}, 0) if $job->{parent}; &reportJobParam($id, 'parent'); -- 2.47.2