Skip to content

Commit 4040ce2

Browse files
authored
vminitd: Get rid of unused CgroupManager (#621)
1 parent 8615e3b commit 4040ce2

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

vminitd/Sources/vminitd/ManagedContainer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ actor ManagedContainer {
8989
id: id,
9090
stdio: stdio,
9191
bundle: bundle,
92-
cgroupManager: cgManager,
9392
owningPid: nil,
9493
log: log
9594
)

vminitd/Sources/vminitd/ManagedProcess.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ final class ManagedProcess: ContainerProcess, Sendable {
6161
private let errorPipe: Pipe
6262
private let terminal: Bool
6363
private let bundle: ContainerizationOCI.Bundle
64-
private let cgroupManager: Cgroup2Manager?
6564

6665
var pid: Int32? {
6766
self.state.withLock {
@@ -73,7 +72,6 @@ final class ManagedProcess: ContainerProcess, Sendable {
7372
id: String,
7473
stdio: HostStdio,
7574
bundle: ContainerizationOCI.Bundle,
76-
cgroupManager: Cgroup2Manager? = nil,
7775
owningPid: Int32? = nil,
7876
log: Logger
7977
) throws {
@@ -140,7 +138,6 @@ final class ManagedProcess: ContainerProcess, Sendable {
140138
// Setup IO early. We expect the host to be listening already.
141139
try io.start(process: &command)
142140

143-
self.cgroupManager = cgroupManager
144141
self.command = command
145142
self.terminal = stdio.terminal
146143
self.bundle = bundle

0 commit comments

Comments
 (0)