aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/dbus/proxy.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-22 16:24:14 +0900
committerOphestra <cat@gensokyo.uk>2026-10-22 16:24:14 +0900
commit02c7ca8e849807130e732b9b639593f49dd5abc8 (patch)
treeb7b7f9f5e17c41f1786d25aecfa373eb90978f35 /internal/dbus/proxy.go
parent1b1733b984a1481d29d747bf208029ceafd75564 (diff)
internal/dbus: add cleanup
This prevents leaking the test process in the test suite. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/dbus/proxy.go')
-rw-r--r--internal/dbus/proxy.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/dbus/proxy.go b/internal/dbus/proxy.go
index 9de49c41..891c0c52 100644
--- a/internal/dbus/proxy.go
+++ b/internal/dbus/proxy.go
@@ -3,6 +3,7 @@ package dbus
import (
"context"
"io"
+ "runtime"
"sync"
"syscall"
@@ -24,6 +25,7 @@ type Proxy struct {
cancel context.CancelCauseFunc
cause func() error
+ cleanup runtime.Cleanup
final *Final
output io.Writer
useSandbox bool