From 87bfb99cfe1eef9469625911574b1caab04557d3 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 20 Jun 2018 15:26:37 +0200 Subject: vm: pass instance to MonitorExecution It may need it later to try to obtain additional diagnostic from hanged instances. --- vm/vm.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm') diff --git a/vm/vm.go b/vm/vm.go index f4729c2c2..ff283cd2f 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -107,7 +107,8 @@ func (inst *Instance) Close() { // outc/errc is what vm.Instance.Run returns, reporter parses kernel output for oopses. // If canExit is false and the program exits, it is treated as an error. // Returns a non-symbolized crash report, or nil if no error happens. -func MonitorExecution(outc <-chan []byte, errc <-chan error, reporter report.Reporter, canExit bool) ( +func (inst *Instance) MonitorExecution(outc <-chan []byte, errc <-chan error, + reporter report.Reporter, canExit bool) ( rep *report.Report) { var output []byte waitForOutput := func() { -- cgit mrf-deployment