summaryrefslogtreecommitdiff
path: root/pkg/systemd/dbus.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/systemd/dbus.go')
-rw-r--r--pkg/systemd/dbus.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/systemd/dbus.go b/pkg/systemd/dbus.go
index 44feb8308..b35f778ab 100644
--- a/pkg/systemd/dbus.go
+++ b/pkg/systemd/dbus.go
@@ -1,6 +1,7 @@
package systemd
import (
+ "context"
"fmt"
"os"
"path/filepath"
@@ -140,5 +141,5 @@ func ConnectToDBUS() (*dbus.Conn, error) {
if rootless.IsRootless() {
return newRootlessConnection()
}
- return dbus.NewSystemdConnection()
+ return dbus.NewSystemdConnectionContext(context.Background())
}