[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 14/13] Planning reports: Break out return-plan-to-client
We are going to want to reuse this. No functional change. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> --- ms-queuedaemon | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ms-queuedaemon b/ms-queuedaemon index 425b98f..222b687 100755 --- a/ms-queuedaemon +++ b/ms-queuedaemon @@ -354,11 +354,16 @@ proc cmd/thought-done {chan desc} { puts-chan $chan "OK thought" } +proc return-plan-to-client {chan wf} { + set tplan [exec -keepnewline ./ms-planner -w$wf get-plan < /dev/null] + puts-chan-data $chan "OK get-plan" $tplan + return $tplan +} + proc cmd/get-plan {chan desc} { global plan set w [check-we-are-thinking $chan] - set plan [exec -keepnewline ./ms-planner -w$w get-plan < /dev/null] - puts-chan-data $chan "OK get-plan" $plan + set plan [return-plan-to-client $chan $w] } proc cmd/book-resources {chan desc bytes} { -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |