aboutsummaryrefslogtreecommitdiffstats
path: root/vm/starnix
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-07-08 12:45:31 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-07-11 09:03:37 +0000
commitbdca406b2cf89f029207aa8213460ec7a3267ccc (patch)
tree077a43542b50ba8c6db9cc91567fb332032a3913 /vm/starnix
parenta893841a9f868b1590b9dacfa772d634629ad88d (diff)
vm: make Instance implement io.Closer
It's better to follow standard interfaces.
Diffstat (limited to 'vm/starnix')
-rw-r--r--vm/starnix/starnix.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/starnix/starnix.go b/vm/starnix/starnix.go
index 7d52c6c61..65c921ee3 100644
--- a/vm/starnix/starnix.go
+++ b/vm/starnix/starnix.go
@@ -165,7 +165,7 @@ func (inst *instance) boot() error {
return nil
}
-func (inst *instance) Close() {
+func (inst *instance) Close() error {
inst.ffx("emu", "stop", inst.name)
if inst.fuchsiaLogs != nil {
inst.fuchsiaLogs.Process.Kill()
@@ -180,6 +180,7 @@ func (inst *instance) Close() {
if inst.wpipe != nil {
inst.wpipe.Close()
}
+ return nil
}
func (inst *instance) startFuchsiaVM() error {