diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-20 15:26:37 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-22 16:40:45 +0200 |
| commit | 87bfb99cfe1eef9469625911574b1caab04557d3 (patch) | |
| tree | d29a283db2df928698c2c39850b1133b11ef55b6 /vm | |
| parent | ef9ddfbe36910afb0336375fec3cfed65a74897f (diff) | |
vm: pass instance to MonitorExecution
It may need it later to try to obtain additional
diagnostic from hanged instances.
Diffstat (limited to 'vm')
| -rw-r--r-- | vm/vm.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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() { |
