[padb-devel] [padb commit] r102 - Handle the case where there is no reply from individual processes,
codesite-noreply at google.com
codesite-noreply at google.com
Wed Jul 15 18:40:11 BST 2009
Author: apittman
Date: Wed Jul 15 10:38:54 2009
New Revision: 102
Modified:
branches/full-duplex/src/padb
Log:
Handle the case where there is no reply from individual processes,
don't pass undef back up the tree, instead return nothing.
Modified: branches/full-duplex/src/padb
==============================================================================
--- branches/full-duplex/src/padb (original)
+++ branches/full-duplex/src/padb Wed Jul 15 10:38:54 2009
@@ -6434,9 +6434,11 @@
foreach my $proc ( @{$list} ) {
my $vp = $proc->{vp};
my $pid = $proc->{pid};
- $gres{$vp} =
+ my $res =
$allfns{ $cmd->{mode} }{handler}( $cmd->{cargs}, $vp, $pid );
+ $gres{$vp} = $res if ( defined $res );
}
+ return if not %gres;
return \%gres;
}
@@ -6634,9 +6636,11 @@
} else {
$res = default_handler_all( $cmd, $pid_list );
}
- $netdata->{target_responce} = $res;
- $netdata->{all_replys}{target_responce} = $res;
-
+ if ( $res ) {
+ $netdata->{target_responce} = $res;
+ $netdata->{all_replys}{target_responce} = $res;
+ }
+
return;
}
More information about the padb-devel
mailing list